Overview
Open Code is well-suited for terminal-based development workflows. Once the provider is configured, you can use Step models directly in the terminal to handle common coding tasks.Prerequisites
Development Environment
The following systems are supported:- macOS
- Linux
Install Open Code
Open Code can be installed via Homebrew:Subscribe to Step Plan
Before proceeding with configuration, make sure your account has an active Step Plan subscription. Model calls and quota usage will only work correctly once your account has the appropriate plan or access permissions. To subscribe or purchase, visit: Step Plan subscriptionGet a Step API Key
Visit the Step Platform Console to create an API Key and save it somewhere safe.Configuration
Set Environment Variables
Open your system terminal (Terminal.app or iTerm2) and run the following commands from any directory (~/.zshrc is an absolute path and is not affected by your current working directory):
xxxxxx with the Step API Key you created in the console. After running source ~/.zshrc, these variables will be loaded automatically every time you open a new terminal session — no need to run this again.
Verify Environment Variables
Run the following commands to confirm the variables were written correctly:https://api.stepfun.ai/step_plan/v1 respectively, the configuration is complete.
Select a Model
Launch Open Code:Ctrl + T to open the model list (Variants) and select the recommended model:
Note: In the examples below, replaceOnce selected, the current model information will appear at the bottom of the terminal, for example:<model_id>with eitherstep-3.5-flash-2603orstep-3.5-flash.
Test the Integration
After completing the configuration, run a simple task to verify the connection, for example:Troubleshooting
StepFun Models Not Showing
If you cannot find anyStepFun models in the model list, check the following:
- Whether Open Code is up to date.
- Whether your network connection is working properly.
- Whether the environment variables were written correctly (run
echo $OPENAI_BASE_URLto verify). - Whether you have fully restarted the terminal before launching Open Code.
API Key Error
If you see the following error:- Whether the key was copied in full
- Whether the key belongs to the correct environment (
.ai/.com)
Model Call Failure
If the model does not return a result, check:- Whether the API Key is valid.
- Whether the model name is correct.