AI agent terminal access API integration