cline auth, you can run interactive terminal sessions, one-shot coding tasks, scripts, and JSON-based automation through A2Agent.
Prerequisites
- Cline CLI installed — follow the official installation guide
- An A2Agent API key — sign up at a2agent.me/register to get one
- A model ID listed on the A2Agent Models page
Setup
1
Open Cline CLI authentication
Run:This opens the interactive provider and authentication setup in your terminal.
2
Select “Bring your own provider”
This option allows Cline CLI to connect to an external provider using a custom API endpoint and API key.
3
Select “OpenAI Compatible”
A2Agent provides an OpenAI-compatible API, so no additional SDK or provider-specific integration is required.
4
Enter the A2Agent provider information
Example:
deepseek-v4-flash is only an example. Use the exact model ID currently shown on the A2Agent Models page.5
Run Cline CLI with A2Agent
Start an interactive session:Or run a one-shot task:If Cline returns a response, the A2Agent connection is working.
Troubleshooting
Connection error
Connection error
Confirm that the base URL is exactly:
Model not found
Model not found
The Model field or
--model value must contain an exact A2Agent model ID.Check the current list at:https://a2agent.me/modelsModel availability and IDs may change over time.