Skip to content
Esc
↑↓navigate↵open⌘Jpreview
Start
On this page

DeepSeek

Use DeepSeek V4 Flash and V4 Pro directly from Autohand through DeepSeek's OpenAI-compatible API.

What is the Autohand DeepSeek integration?

The Autohand DeepSeek integration connects the coding agent to DeepSeek through its OpenAI-compatible API. It uses API-key authentication and lets you select an account-supported model with the Autohand provider and model controls.

Status Available
Requires A DeepSeek API key and access to the model you select.
Configure with Put the key in deepseek.apiKey in the Autohand config file, set provider to deepseek, and choose a supported model ID. The CLI does not read DEEPSEEK_API_KEY and does not expand ${VAR} placeholders.
Best for Hosted coding and reasoning sessions through a DeepSeek account.

Overview

DeepSeek is a good fit for coding, reasoning, and cost-sensitive agent sessions. Autohand supports the deepseek provider with API-key authentication. Switch models in a session with /model, which opens the model picker (it ignores arguments such as /model deepseek-v4-pro).

Setup

  1. Create a DeepSeek API key from the DeepSeek platform.
  2. Run autohand --setup and choose DeepSeek, or paste the key into deepseek.apiKey in your Autohand config file (see CLI configuration). The CLI does not read a DEEPSEEK_API_KEY environment variable.
  3. Select a DeepSeek model during setup, or run /model in a session to open the model picker.

To use DeepSeek for some runs only, keep your default provider and add a profile to the config. --profile layers profiles.<name> onto one run without saving it, and works in every mode, including --patch:

{
  "deepseek": {
    "apiKey": "sk-your-deepseek-api-key",
    "model": "deepseek-v4-flash"
  },
  "profiles": {
    "deepseek-pro": {
      "provider": "deepseek",
      "deepseek": { "model": "deepseek-v4-pro" }
    }
  }
}
autohand --profile deepseek-pro
autohand --profile deepseek-pro --prompt "Review the staged diff" --patch

Use --model <id> to override the model of the active provider for one run. For CI, AUTOHAND_PROVIDER=deepseek selects the provider from the environment; the key still comes from deepseek.apiKey.

CLI configuration

{
  "provider": "deepseek",
  "deepseek": {
    "apiKey": "sk-your-deepseek-api-key",
    "baseUrl": "https://api.deepseek.com",
    "model": "deepseek-v4-flash"
  }
}
Option Description Default
apiKey Your DeepSeek API key -
baseUrl DeepSeek API endpoint https://api.deepseek.com
model DeepSeek model ID deepseek-v4-flash

Write the key itself in apiKey. Autohand sends the value as written, so a placeholder such as "${DEEPSEEK_API_KEY}" is sent literally and fails as an invalid key.

Models

Model Best for
deepseek-v4-flash Autohand’s default. DeepSeek retired V4 Flash on 2026-09-10 and routes this name to V4.1 Flash for compatibility.
deepseek-flash DeepSeek’s current name for V4.1 Flash. Not in the bundled picker list yet; set it in deepseek.model.
deepseek-v4-pro Stronger reasoning and code review
deepseek-chat Legacy name, scheduled by DeepSeek for discontinuation on 2026-07-24. Do not use for new setups.
deepseek-reasoner Legacy name, scheduled by DeepSeek for discontinuation on 2026-07-24. Do not use for new setups.

DeepSeek renames models often. Check the DeepSeek models and pricing page before you pin a model ID.

Troubleshooting

Issue Fix
Invalid API key Check that deepseek.apiKey holds the literal key, not DEEPSEEK_API_KEY or a ${...} placeholder.
Model not found Use deepseek-flash, deepseek-v4-flash or deepseek-v4-pro.
--provider deepseek has no effect --provider is a hidden option and is ignored in --patch mode. Use --profile or set provider in the config.
Network or proxy issues Set deepseek.baseUrl only when routing through an approved proxy.
How do I configure the Autohand DeepSeek integration?

Put the key in deepseek.apiKey in the Autohand config file, set provider to deepseek, and choose a supported model ID. The CLI does not read DEEPSEEK_API_KEY and does not expand ${VAR} placeholders.

What does the Autohand DeepSeek integration require?

A DeepSeek API key and access to the model you select.

What limitations should I know about?

Confirm model IDs, quotas, context limits, and availability in the DeepSeek account before production use.

Last updated on

Was this helpful?

Send Feedback

Help us improve this documentation page. Your feedback is valuable.

We'll only contact you if we need clarification