Aider + DeepSeek

Use Aider with an unlimited DeepSeek API.

Aider can connect to any OpenAI-compatible endpoint. Set the Stream API base and key, choose DeepSeek V4 Flash, and run repository-scale coding sessions without watching a token meter.

Why this setup

Keep the agent. Change the inference bill.

01

Repository-aware sessions

Aider maps and edits code across a repository, which can create long prompts and iterative generations that benefit from predictable pricing.

02

Simple environment setup

Two standard environment variables and one model flag are enough to route Aider through Stream.

03

Keep the normal Git workflow

Aider still operates in the repository and presents diffs as usual; only the inference endpoint changes.

Configuration

Connect Aider to Stream.

1. Export your Stream credentials

Set CAMELAI_API_KEY securely, then map it to the OPENAI_API_KEY variable Aider expects for an OpenAI-compatible provider.

2. Set the custom API base

Point OPENAI_API_BASE to https://api.camelai.com/v1 before starting Aider in your repository.

3. Launch the Stream model

Start Aider with openai/deepseek-v4-flash. Ask for a small, reviewable edit first and inspect the diff before attempting a larger task.

Terminal setup
Stream endpoint
export OPENAI_API_BASE="https://api.camelai.com/v1"
export OPENAI_API_KEY="$CAMELAI_API_KEY"

cd /path/to/your/repository
aider --model openai/deepseek-v4-flash

Troubleshooting

Check these details first.

Agent configuration formats change. Compare this guide with the linked official documentation when upgrading Aider.

01

Use OPENAI_API_BASE, not a URL that already includes /chat/completions.

02

Prefix the model with openai/ when launching Aider.

03

If Aider warns about an unfamiliar model, confirm the model ID and review Aider's model-warning guidance.

04

Keep your API key outside shell history and committed configuration files.

Frequently asked questions

Before you connect.

Give your coding agent room to work.

DeepSeek V4 Flash through an OpenAI-compatible API with unlimited token usage for one fixed monthly price.

Get your API key