Overview
Claude Code is suitable for developers who prefer terminal-based workflows. After configuration is complete, you can directly drive coding tasks with natural language in 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 to run. It is recommended to installNode.js >= 18.
Examples of installation methods for different systems:
- macOS: use Homebrew or
nvm - Linux: use the system package manager or
nvm - Windows: use the official Node installer or Chocolatey
Subscribe to Step Plan
Before you start configuring, make sure your current account has an active Step Plan subscription. Only accounts with the required plan or calling permissions can use model calls and quotas normally. To subscribe or purchase, visit Step Plan subscriptionObtain a Step API Key
Before calling the model, you need to obtain an API Key from the Step Open Platform first. It is recommended to create a new key through the console and avoid hardcoding it into the code repository. Recommended practices:- Store the key in environment variables
- Or manage the key through a local configuration file
Configuration Steps
Install Claude Code
Run in the terminal:Create the Configuration File
Claude Code reads the API service address and authentication information through a configuration file. The configuration file location is:ANTHROPIC_API_KEY: enter your Step API KeyANTHROPIC_BASE_URL: enterhttps://api.stepfun.ai/step_planmodel: enter<model_id>
Note: In the examples below, replaceAfter saving, it is recommended to reopen the terminal to make the configuration take effect.<model_id>with eitherstep-3.5-flash-2603orstep-3.5-flash.
Start Claude Code
Enter any code project directory:Do you want to use this API key? appears on the first startup, select Yes.
Test the Integration
After entering Claude Code, first run the following command to view the current configuration status:- API Key is loaded
- 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 entered incorrectly (
<model_id>) - The current account does not have permission for this model
- The Base URL points to the wrong interface (
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
It is recommended to check:- Whether Claude Code has been fully restarted.
- Whether the JSON format of the configuration file is correct.
- Whether the terminal environment variables have been refreshed.
Summary
After configuration is complete, Claude Code can use the Step API to initiate model calls in the terminal for code generation, debugging, and development workflow automation. It is recommended to first verify the configuration with/status and a minimal task before using it in a real project.