#23026: Onboard: move volcengine/byteplus auth from .env to profiles
commands
maintainer
size: M
Cluster:
AI Provider Enhancements
## Summary
- migrate Volcengine and BytePlus onboarding auth persistence from shared `.env` writes to auth-profile credentials
- add provider-specific profile setters and wire both interactive and non-interactive auth-choice flows to use them
- support env-backed secure persistence by storing `keyRef: { source: "env", id: "VOLCENGINE_API_KEY" | "BYTEPLUS_API_KEY" }` when input is env-backed/`${ENV}`
- preserve plaintext fallback when users provide a literal key not backed by environment variables
## User-visible Behavior
- onboarding no longer writes Volcengine/BytePlus static keys into `~/.openclaw/.env` on migrated paths
- these providers now follow the same profile-based auth storage model as OpenAI and other migrated providers
## Scope Boundary
- no change to provider request wiring or runtime secret resolution contract
- no OAuth token handling in this PR
## Validation
- `pnpm check`
- `pnpm vitest run src/commands/onboard-auth.credentials.test.ts src/commands/auth-choice.apply.volcengine-byteplus.test.ts`
Most Similar PRs
#23015: Onboard: store OpenAI auth in profiles instead of .env
by joshavant · 2026-02-21
83.0%
#23009: Onboard: persist env-backed API keys as secret refs
by joshavant · 2026-02-21
70.9%
#7813: feat(onboard): validate Venice API keys during setup
by jonisjongithub · 2026-02-03
66.0%
#16626: fix: prompt onboarding auth selection when auth choice is blank
by harshang03 · 2026-02-14
64.7%
#19841: feat: add Amazon Bedrock as first-class onboarding provider
by elbeyf · 2026-02-18
61.5%
#23444: Gateway: move auth token storage to state dotenv by default
by bmendonca3 · 2026-02-22
61.2%
#18670: feat: add first-class Claude Code CLI auth path + CLI model UX hard...
by SmithLabsLLC · 2026-02-16
61.1%
#10857: Add model provider StepFun
by hengm3467 · 2026-02-07
61.1%
#20212: feat: Add Kilo Gateway provider
by jrf0110 · 2026-02-18
60.9%
#21520: feat(onboard): add Cencori provider.
by bolaabanjo · 2026-02-20
60.6%