Use Claude Agent SDK and Claude Code with Infron AI models
What's Claude Code
Claude Code is an AI-powered coding assistance published by Anthropic that provides a terminal interface, allowing developers to delegate complex programming tasks directly from the terminal to Claude Code for completion.
What's Infron AI General Conversion Layer
Infron AI General Conversion Layer lets you run the Claude Agent SDK against any model in Infron AI—without changing your agent logic.
With the Infron AI General Conversion Layer, developers can keep using the same SDK APIs. The conversion layer translates Anthropic-style Messages requests to whichever upstream (Anthropic、OpenAI or other models in Infron AI) matches the model string you provide.
What We Help You Achieve
With Infron AI, developers can seamlessly integrate and utilize a wide range of AI model combinations. Through Infron AI, you can use Claude code powered by different underlying model engines, including:
Gemini 3 models as the core runtime for executing Claude code;
GPT series models as the core runtime for executing Claude code;
The full series of Claude models as the native core for executing Claude code.
This flexible architecture allows Infron AI to unify multiple large language model ecosystems under a single interface, enabling developers to switch, combine, or optimize model performance for diverse code execution and reasoning scenarios.
Quick Start
Now, Infron AI provides Anthropic SDK compatible LLM API services, enabling you to easily use Infron AI LLM models in Claude Code to complete tasks. Please refer to the guide below to complete the integration process.
# Set the Anthropic SDK compatible API endpoint provided by Infron AI.
export ANTHROPIC_BASE_URL="https://llm.onerouter.pro"
export ANTHROPIC_AUTH_TOKEN="<API Key>"
# Set the model provided by Infron AI.
export ANTHROPIC_MODEL="claude-sonnet-4@20250514"
export ANTHROPIC_SMALL_FAST_MODEL="claude-3-5-haiku@20241022"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-3-5-haiku@20241022"
export ANTHROPIC_DEFAULT_OPUS_MODEL="claude-3-5-haiku@20241022"
export ANTHROPIC_DEFAULT_SONNET_MODEL="claude-3-5-haiku@20241022"