Authentication
DSCC reads provider credentials from environment variables at launch. Each supported provider has its own key variable and an optional base-URL override. No credentials are written to disk unless you use OAuth.
Provider keys
Anthropic
export ANTHROPIC_API_KEY="sk-ant-..."
export ANTHROPIC_BASE_URL="https://api.anthropic.com" # optional
Used by any claude-* model id.
xAI / Grok
export XAI_API_KEY="xai-..."
export XAI_BASE_URL="https://api.x.ai/v1" # optional
Used by grok-* model ids.
DeepSeek
export DEEPSEEK_API_KEY="..."
export DEEPSEEK_BASE_URL="https://api.deepseek.com/v1" # optional
Used by deepseek-* model ids.
Generic OpenAI-compatible
For any other provider speaking the OpenAI-compatible wire format (e.g. doubao/ARK, self-hosted vLLM, OpenAI itself):
export DSCC_API_KEY="..."
export DSCC_BASE_URL="https://ark.cn-beijing.volces.com/api/v3"
dscc --model doubao-seed-1-6-250615 prompt "summarize this workspace"
Both DSCC_API_KEY and DSCC_BASE_URL are
required when routing through the generic provider.
OAuth
For Anthropic, OAuth is an alternative to
ANTHROPIC_API_KEY.
dscc login # [交互] launches a browser flow; cannot be scripted end-to-end
dscc logout
| Field | Value |
|---|---|
| Subcommand entry | crates/dscc-cli/src/main.rs:315 |
| Default callback port | 4545
(crates/runtime/src/oauth.rs:474) |
| Redirect URI | http://127.0.0.1:4545/... loopback |
login starts the browser flow and stores the resulting
tokens in DSCC’s local credential store; logout clears
them.
Full environment table
| Variable | Purpose | Default |
|---|---|---|
ANTHROPIC_API_KEY |
Anthropic provider key | required for Anthropic models |
ANTHROPIC_BASE_URL |
Override Anthropic endpoint | https://api.anthropic.com |
XAI_API_KEY |
xAI / Grok key | required for Grok models |
XAI_BASE_URL |
Override xAI endpoint | https://api.x.ai/v1 |
DEEPSEEK_API_KEY |
DeepSeek key | required for DeepSeek models |
DEEPSEEK_BASE_URL |
Override DeepSeek endpoint | https://api.deepseek.com/v1 |
DSCC_API_KEY |
Generic OpenAI-compatible key | required for generic providers |
DSCC_BASE_URL |
Generic OpenAI-compatible endpoint | required for generic providers |
DSCC_MODEL |
Fallback model id when --model omitted |
— |
DSCC_PERMISSION_MODE |
Default permission mode at launch | danger-full-access (main.rs:447-452) |
See reference/env-vars.md for every variable DSCC reads, including tuning knobs outside authentication.
Next
- model-selection.md — pick the model id that routes to the provider you just configured.