Agent Model Connector
Launching with Claude Code · Codex CLI · DeepSeek · OpenRouter

Connect Any AI Agent with Any AI Model

Generate ready-to-use configurations for Claude Code, Codex CLI and more. No login. Local generation. Privacy-first.

30-second setup

Pick an agent and provider; get working configuration instantly.

API keys never uploaded

Everything is generated in your browser. Nothing is stored.

Maintained compatibility

Configurations track official provider documentation.

Configuration generator

Choose an agent, a provider, and your environment. The generated steps cover the API key, environment variables or config file, verification, and troubleshooting.

deepseek-v4-flash is cheaper and faster; deepseek-v4-pro[1m] gives the best quality with a 1M context window.

1

Get an API key

Create a DeepSeek API key. Claude Code authenticates with it — it never leaves your machine.

Get a DeepSeek API key
  • Install Claude Code: npm install -g @anthropic-ai/claude-code
  • Sign in, open API Keys, and create a key that starts with sk-. Top up your account balance; the API is pay-as-you-go.
2

Configure the connection

Set these environment variables in your shell profile.

  1. 1Add these lines to ~/.zshrc
  2. 2Run: source ~/.zshrc
export ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="sk-"
# Leave ANTHROPIC_API_KEY unset
export ANTHROPIC_MODEL="deepseek-v4-pro[1m]"
export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-v4-pro[1m]"
export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-v4-pro[1m]"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4-pro[1m]"
export CLAUDE_CODE_SUBAGENT_MODEL="deepseek-v4-flash"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1"
# Workaround for the known 400 "invalid user_id" bug

Paste your API key where the placeholder is. Then open a new terminal window.

3

Verify the configuration

Run this command in a new terminal. A successful response confirms that Claude Code is talking to the configured endpoint.

claude
Status: Connected
Model: <your selected model>
Provider: <provider name>
Streaming: Enabled
Tool Calling: Enabled

After Claude Code opens, type `/status` inside the session. The exact labels vary by version; confirm the auth token and base URL shown there.

4

Start using it

Launch Claude Code and send your first message.

  • Type: Hello. What can you help me with today?
claude
5

Troubleshooting

Most issues fall into one of these categories. Each entry lists the cause, the fix, and how to verify it.

401 Unauthorized

Troubleshooting guide

The API key is wrong, expired, or the provider account has no balance.

Create a fresh key on the provider dashboard, then regenerate the config with the new key. If the key is stored in a shell profile, open a new terminal so the export takes effect.

Verify: Run `echo $ANTHROPIC_AUTH_TOKEN` (or `echo $DEEPSEEK_API_KEY` / `$OPENROUTER_API_KEY` for Codex) and confirm the value looks like a valid key.

The base URL is wrong (typo, extra path segment) or, on Codex, the wire protocol does not match what the provider serves.

Copy the exact base URL from this page. For Codex, keep `wire_api = "responses"` with OpenRouter; if DeepSeek returns 404 on /responses, try removing the wire_api line to match the endpoint your provider serves.

Verify: Re-run the verify command from step 3 and check the error path: it should end in /anthropic (Claude Code) or /responses (Codex).

Model Not Found

Troubleshooting guide

The model name does not exist on the provider, or the agent cached an old login that overrides the environment.

Pick a model from the provider list on this page. For Claude Code with OpenRouter, run `/logout` inside Claude Code, then relaunch — a cached Anthropic login overrides your environment variables.

Verify: Confirm ANTHROPIC_API_KEY is set to an empty string (OpenRouter) or unset (DeepSeek), then run `claude /status` again.

Rate Limit / Insufficient Quota

Troubleshooting guide

The provider limits requests per minute, or the account balance ran out.

Wait for the limit window, top up the account balance, or switch to a cheaper model. OpenRouter users can raise free-tier limits by adding credits.

Verify: Check the provider dashboard (balance and usage page) for the rejected request.

Network Error / Connection Failed

Troubleshooting guide

The machine cannot reach the provider endpoint, or an intercepting proxy rewrites the request.

Check DNS and connectivity to the base URL, review proxy and firewall settings, and retry. Use the exact endpoint from this page; third-party mirrors are not supported.

Verify: Run `curl -I <base url>` (e.g. `curl -I https://api.deepseek.com/anthropic`) and confirm a reachable response.

Timeout / Request Timed Out

Troubleshooting guide

A slow model, a long prompt, or a restricted network to the provider region.

Retry the request, shorten the prompt, or switch to a faster model. Region-based connectivity issues may require a different network or a provider with closer servers.

Verify: Run the verify command again when the network is idle and confirm it completes.

Older Claude Code versions fail

Very old Claude Code versions do not read ANTHROPIC_BASE_URL.

Update with `npm install -g @anthropic-ai/claude-code` and relaunch.

Verify: `claude --version` should report a current release.

Compatibility matrix

Which agents work with which providers, and how well.

View full matrix
Agent Provider Status
Claude Code DeepSeek Verified Guide
Claude Code OpenRouter Verified Guide
Codex CLI DeepSeek Verified Guide
Codex CLI OpenRouter Verified Guide

Frequently asked questions

Is Agent Model Connector really free?

Yes. The generator runs entirely in your browser, there is no account system, and there is nothing to subscribe to. You only pay the model provider you choose.

Do you store my API key?

No. Configuration is generated locally and nothing is sent to a server. Keys are pasted into your own terminal or config file, never into this site.

Which agent and provider combinations are supported?

The launch catalog covers Claude Code and Codex CLI with DeepSeek and OpenRouter. New combinations are added as they are documented by providers; check the Compatibility Matrix for status.