On this page

DeepSeek Provider

Provider guide · Configuration · 简体中文

Minimal Setup

export SIGIL_API_KEY="sk-..."
sigil
config_version = 2

[agent]
connection = "deepseek-default"
model = "deepseek-v4-flash"

[connections.deepseek-default]
label = "DeepSeek"
provider = "deepseek"
protocol = "deepseek"
base_url = "https://api.deepseek.com"
credential = { source = "environment", name = "SIGIL_API_KEY" }

[connections.deepseek-default.options]
fim_model = "deepseek-v4-pro"

See deepseek-basic.toml for a copyable file.

Authentication

The example binds this connection to SIGIL_API_KEY. You can instead choose the protected credential store in setup or /config; sigil.toml stores only an opaque stored ID. The default file mode uses owner-only ~/.sigil/credentials.json without system authentication prompts. Pasted secrets are never valid connection fields.

Options And Visible Limits

base_url belongs to this exact connection. beta_base_url, anthropic_base_url, fim_model, strict_tools_mode, and user_id_strategy belong under [connections.deepseek-default.options] and apply only to this DeepSeek route.

DeepSeek image input is not enabled. An attached image is rejected before a request is sent; choose a supported image provider instead.

Verify

Run sigil doctor and confirm default=deepseek-default/deepseek-v4-flash, the endpoint, credential source, and readiness.

Common Problems

Next: Return to Providers.