Agent CLI Compatibility

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.

1. Client
Claude Code CLI
Agent loop & tools
2. Gateway
DEVUP Messages API
POST /anthropic/v1/messages
3. Inference
Foundation Models
DeepSeek, Qwen & more
4. Response
Streaming SSE
Tool cycles & deltas

Configuration

Quick Setup in Your Environment

1

Add a Dedicated Shell Function (Recommended)

To leave your standard Claude Code configuration untouched, add this wrapper function to your ~/.bashrc or ~/.zshrc:

bash
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.

2

Or Export Directly in Active Shell

Set the environment variables in your terminal session before running Claude Code:

bash
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 VariableClaude Code AliasRecommended DEVUP AI Model
ANTHROPIC_DEFAULT_SONNET_MODELsonnet (Main coding)deepseek-ai/DeepSeek-V3
ANTHROPIC_DEFAULT_OPUS_MODELopus (Complex tasks)deepseek-ai/DeepSeek-R1
ANTHROPIC_DEFAULT_HAIKU_MODELhaiku (Fast queries)Qwen/Qwen3-30B-A3B
CLAUDE_CODE_SUBAGENT_MODELsubagent tasksQwen/Qwen3-30B-A3B
bash
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

claude -p "prompt"
Non-Interactive Mode

Executes a single non-interactive task directly via the command line. Bypasses interactive authentication prompts across all versions.

claude --bare
Direct API Key Session

Under --bare, authentication resolves strictly through ANTHROPIC_API_KEY, bypassing OAuth keychain prompts on clients requiring it.

Notice on Unrecognized Model: Every invocation prints a client warning: [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.