Claude Code is an AI coding assistant that runs in the terminal. It can complete code generation, debugging, refactoring, engineering management, and other development tasks through natural language commands. By configuring its API endpoint, Claude Code can route model requests to a custom AI service. This guide explains how to configure Step API access in Claude Code and verify that the model is available.Documentation Index
Fetch the complete documentation index at: https://platform.stepfun.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Claude Code is designed for developers who prefer terminal-based workflows. After the configuration is complete, you can use natural language to drive coding tasks directly inside local projects.Prerequisites
Operating System
Claude Code supports the following systems:- macOS
- Linux
- Windows (PowerShell or Windows Terminal is recommended)
Node.js Environment
Claude Code depends on Node.js. We recommend installingNode.js >= 18.
Example installation methods for different systems:
- macOS: use Homebrew or
nvm - Linux: use the system package manager or
nvm - Windows: use the official Node.js installer or Chocolatey
Subscribe to Step Plan
Before you start, make sure your account has an active Step Plan subscription. Model calls and quota usage will work only after your account has the required plan or calling permissions. To subscribe or purchase a plan, visit Step Plan Subscription.Get a Step API Key
Before calling models, get an API Key from the Step Open Platform. We recommend creating a new key in the console and avoiding hardcoding it into your code repository. Recommended practices:- Store the key in an environment variable
- Or manage the key through a local configuration file
Configuration Steps
Install Claude Code
Run the following command in your terminal:Create the Configuration File
- Quick setup with the script
- Edit the configuration file manually
macOS / Linux (Bash)Windows (PowerShell as Administrator)Note: You must run the script in PowerShell as Administrator. Otherwise, the script will show a prompt and exit.
- Right-click the Windows Start menu, then select “Terminal (Admin)” or “Windows PowerShell (Admin)”.
- Run the following commands:
Start Claude Code
Enter any code project directory:Do you want to use this API key? appears on first launch, select Yes.
Test the Integration
After entering Claude Code, run the following command to view the current configuration status:- The API Key is loaded
- The Base URL is correct (
https://api.stepfun.ai/step_plan) - The default model name is correct (
<model_id>)
Common Issues
Model Does Not Exist
Example error:- The model name is incorrect (it should be
<model_id>) - The current account does not have permission to use this model
- The Base URL points to the wrong endpoint (it should be
https://api.stepfun.ai/step_plan)
Invalid API Key
Example error:- The API Key was entered incorrectly
- The key has expired or been deleted
- The key does not match the current API domain
Insufficient Quota
Example error:Changes Do Not Take Effect After Modifying the Configuration
We recommend checking:- Whether Claude Code has been fully restarted.
- Whether the configuration file uses valid JSON.
- Whether the terminal environment variables have been refreshed.
Summary
After configuration is complete, Claude Code can initiate model calls through the Step API in the terminal for code generation, debugging, and development workflow automation. We recommend verifying the configuration with/status and a minimal task before using it in a real project.