Appearance
阶跃星辰(StepFun)
OpenClaw 内置 StepFun Provider,包含两个独立 Provider ID:
stepfun:标准端点stepfun-plan:Step Plan 端点
端点与地区
| 路径 | 中国区端点 | 国际区端点 |
|---|---|---|
| 标准 | https://api.stepfun.com/v1 | https://api.stepfun.ai/v1 |
| Step Plan | https://api.stepfun.com/step_plan/v1 | https://api.stepfun.ai/step_plan/v1 |
认证环境变量:STEPFUN_API_KEY。中国区 Key 对应 .com 端点,国际区 Key 对应 .ai 端点。
快速开始
交互式:
bash
openclaw onboard选择以下认证选项之一:
stepfun-standard-api-key-cn(国内标准版)stepfun-standard-api-key-intl(国际标准版)stepfun-plan-api-key-cn(国内 Step Plan)stepfun-plan-api-key-intl(国际 Step Plan)
非交互式:
bash
openclaw onboard --auth-choice stepfun-standard-api-key-intl --stepfun-api-key "$STEPFUN_API_KEY"
openclaw onboard --auth-choice stepfun-plan-api-key-intl --stepfun-api-key "$STEPFUN_API_KEY"一次认证会同时写入 stepfun 和 stepfun-plan 两个 Provider 的配置档案。
内置模型目录
标准 stepfun:
| 模型 | 上下文窗口 | 最大输出 |
|---|---|---|
stepfun/step-3.5-flash | 262,144 | 65,536 |
Step Plan stepfun-plan:
| 模型 | 上下文窗口 | 最大输出 |
|---|---|---|
stepfun-plan/step-3.5-flash | 262,144 | 65,536 |
stepfun-plan/step-3.5-flash-2603 | 262,144 | 65,536 |
step-3.5-flash-2603目前仅在stepfun-plan端点可用。
手动配置示例
标准版:
json5
{
env: { STEPFUN_API_KEY: "your-key" },
agents: { defaults: { model: { primary: "stepfun/step-3.5-flash" } } },
models: {
mode: "merge",
providers: {
stepfun: {
baseUrl: "https://api.stepfun.ai/v1",
api: "openai-completions",
apiKey: "${STEPFUN_API_KEY}",
models: [
{
id: "step-3.5-flash",
name: "Step 3.5 Flash",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 65536,
},
],
},
},
},
}Step Plan 版:
json5
{
env: { STEPFUN_API_KEY: "your-key" },
agents: { defaults: { model: { primary: "stepfun-plan/step-3.5-flash" } } },
models: {
mode: "merge",
providers: {
"stepfun-plan": {
baseUrl: "https://api.stepfun.ai/step_plan/v1",
api: "openai-completions",
apiKey: "${STEPFUN_API_KEY}",
models: [
{
id: "step-3.5-flash",
name: "Step 3.5 Flash",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 65536,
},
{
id: "step-3.5-flash-2603",
name: "Step 3.5 Flash 2603",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 65536,
},
],
},
},
},
}