Using DeepSeek with Oh My Pi
发布时间:2026-09-28 | 浏览:1
Oh My Pi is a terminal AI coding agent. As of v14.5 it ships DeepSeek V4 model entries, but the built-in compat is incomplete — a custom models.yml is still required for reliable use.
Prerequisites
Install Oh My Pi: https://github.com/can1357/oh-my-pi#installation
Get an API key from the DeepSeek Platform :
Configuration
Create ~/.omp/agent/models.yml :
Configuration notes
Thinking mode
Three critical compat fields
These three fields are essential. Without them, DeepSeek V4 will return 400 errors when using tools in thinking mode.
For faster responses:
Switch models inside Oh My Pi with /model or Ctrl+L .
Do not rely on the built-in model entries. Recent builds list deepseek-v4-pro and deepseek-v4-flash via omp --list-models deepseek , but they lack the three critical compat fields above. Long thinking-mode conversations with tool calls will 400. Always use the models.yml configuration shown above.
Oh My Pi does not currently have a DeepSeek OAuth /login entry. API keys must be provided via the DEEPSEEK_API_KEY environment variable or the apiKey field in models.yml .
When using DeepSeek V4 through unofficial providers (DeepInfra, KiloCode, NVIDIA NIM, Zenmux, etc.) via OpenAI-compatible endpoints, reasoning_content replay behavior varies and compatibility is unresolved. Prefer the official api.deepseek.com endpoint.
In models.yml , compat replaces the built-in block wholesale — it does not merge. Always specify the full set of compat fields.
Configuration notes Basics Thinking mode Three critical compat fields
Three critical compat fields