Skip to content

Cline

Cline is an AI coding agent for the terminal. ai& is included as a built-in provider, with id aiand and base URL https://api.aiand.com/v1.

Terminal window
npm install -g cline

Create a key in the ai& console, then set it in your shell:

Terminal window
export AIAND_API_KEY="sk-your-aiand-api-key"

Save the provider and a model. This writes the API key into Cline’s local settings:

Terminal window
cline auth --provider aiand --apikey "$AIAND_API_KEY" --modelid moonshotai/kimi-k3

The model id is the catalog id, such as moonshotai/kimi-k3. It is not prefixed with aiand/.

To switch the saved model:

Terminal window
cline auth --provider aiand --apikey "$AIAND_API_KEY" --modelid deepseek-ai/deepseek-v4-flash

Start a task with the saved provider:

Terminal window
cline "inspect this repository and fix the failing test"

A prompt runs in act mode with tool auto-approval on. Override the saved model for one run:

Terminal window
cline -P aiand -m moonshotai/kimi-k3 "reply with only: ok"

When AIAND_API_KEY is set, that one-shot form does not need cline auth first.

Terminal window
cline "reply with only: ok"

Cline prints token counts for the turn, including cached input tokens when the model supports prompt caching.

  • Unauthorized request — set AIAND_API_KEY in the same shell, or run cline auth again with a key from the ai& console.
  • Model not found — use an id from the model catalog. Do not prefix it with aiand/.
  • The agent answers but does not edit files — pick a model with tool calling, such as moonshotai/kimi-k3 or deepseek-ai/deepseek-v4-flash.