Claude Code with DEVUP AI
Connect Anthropic's agentic CLI coding assistant to DEVUP AI. Through our native Anthropic Messages translation layer, Claude Code routes tool use, streaming delta tokens, and multi-turn loops directly to open-source foundation models with zero code modifications.
System Architecture
How Claude Code Connects to DEVUP AI
DEVUP AI exposes an Anthropic-compatible Messages endpoint on https://api.devupai.com/anthropic. When Claude Code issues requests, our platform accepts Anthropic headers, translates messages and tool schemas, dispatches inference to your chosen model, and streams SSE events back in Anthropic format.
Configuration
Quick Setup in Your Environment
Add a Dedicated Shell Function (Recommended)
To leave your standard Claude Code configuration untouched, add this wrapper function to your ~/.bashrc or ~/.zshrc:
devupai() {
export ANTHROPIC_BASE_URL="https://api.devupai.com/anthropic"
export ANTHROPIC_AUTH_TOKEN=$DEVUP_API_KEY
export ANTHROPIC_MODEL="deepseek-ai/DeepSeek-V3"
claude "$@"
}Launch with devupai while keeping your standard claude command unchanged.
Or Export Directly in Active Shell
Set the environment variables in your terminal session before running Claude Code:
export ANTHROPIC_BASE_URL="https://api.devupai.com/anthropic"
export ANTHROPIC_API_KEY="sk-devup-your-api-key"Model Overrides
Claude Code Model Alias Mapping
Claude Code uses model aliases internally (opus, sonnet, haiku). You can remap each alias to supported DEVUP AI models using environment variables:
| Environment Variable | Claude Code Alias | Recommended DEVUP AI Model |
|---|---|---|
| ANTHROPIC_DEFAULT_SONNET_MODEL | sonnet (Main coding) | deepseek-ai/DeepSeek-V3 |
| ANTHROPIC_DEFAULT_OPUS_MODEL | opus (Complex tasks) | deepseek-ai/DeepSeek-R1 |
| ANTHROPIC_DEFAULT_HAIKU_MODEL | haiku (Fast queries) | Qwen/Qwen3-30B-A3B |
| CLAUDE_CODE_SUBAGENT_MODEL | subagent tasks | Qwen/Qwen3-30B-A3B |
devupai() {
export ANTHROPIC_BASE_URL="https://api.devupai.com/anthropic"
export ANTHROPIC_AUTH_TOKEN=$DEVUP_API_KEY
export ANTHROPIC_MODEL="deepseek-ai/DeepSeek-V3"
export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-ai/DeepSeek-R1"
export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-ai/DeepSeek-V3"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="Qwen/Qwen3-30B-A3B"
export CLAUDE_CODE_SUBAGENT_MODEL="Qwen/Qwen3-30B-A3B"
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=16384
claude "$@"
}CLI Execution
Execution Modes & Version Behavior
Executes a single non-interactive task directly via the command line. Bypasses interactive authentication prompts across all versions.
Under --bare, authentication resolves strictly through ANTHROPIC_API_KEY, bypassing OAuth keychain prompts on clients requiring it.
[claude-code:unrecognized_model]. This is emitted by the CLI itself because the open-source model name is not on Anthropic's internal default list; requests continue and execute normally.Capabilities
Supported Agent Capabilities
Full Tool Calling Loop
Enables Claude Code to read files, run tests, apply patch edits, and execute terminal commands via standard function calling schemas.
Streaming Token Deltas
SSE delta stream translation delivers token-by-token output with ultra-low latency for interactive coding workflows.
Multi-Turn Conversations
Preserves complex multi-turn context and subagent tasks across extended development and refactoring sessions.
Local DZD Billing
Metered billing in Algerian Dinar with Edahabia and CIB local payment support.
Ready to Code with Claude Code on DEVUP AI?
Generate an API key in your dashboard, configure your shell function, and start executing agentic coding workflows today.