Version 1.4.0 (current)
Use DeepSeek inside Taku OS
Configure DeepSeek through on-device Codex and Magpie, then verify text replies and real phone tools.
Connect your DeepSeek service in the Taku assistant, then send a text request and inspect its result. The on-phone connector is Magpie, a third-party open-source model gateway (MIT, by yetone, usemagpie.ai). Taku OS runs it on the phone as part of the system to forward Codex requests to model services, while the existing assistant handles conversation and tools. A gateway on the phone does not mean the model runs locally; DeepSeek inference stays online.
Check the prepared environment before setup.
Where the components run
Taku OS native assistant
→ on-device Codex App Server
→ on-device Magpie gateway
→ DeepSeek online API
→ Codex calls a device tool; results return to the native conversation- Codex manages conversations and turns, executes tools, and stops tasks.
- Magpie manages model services and routing groups, translating and forwarding model requests.
- DeepSeek generates replies and tool-call requests online.
Codex and Magpie both run inside Android. The connection works without a MacBook model relay or a desktop Magpie process. Programs using the SDK directly can run independently of this model connection.
Prerequisites and verification status
You need a Taku OS preview environment with Home, the assistant, the system task service, Codex, and Magpie integrated, network access from that device, and your own authorization for the DeepSeek API service. The interface steps below run on the device and do not require ADB. Start with installation choices if you do not have the preview environment.
| Scope | Verification result |
|---|---|
| Emulator | Codex 0.161.0 → Magpie 0.1.1290 → DeepSeek real conversation and device tool are verified, as are management-page return and session/draft restoration. This is the verified path for this tutorial; check your own account and device with the calls below |
| Phone | Real Codex models, commands, and restart recovery are verified on Pixel 9. The complete Magpie + DeepSeek path is not yet verified on a physical device; the Codex result does not extend to it |
| ROM | Taku OS 1.0 on Pixel includes Magpie and its runtime, with real model calls checked. The full DeepSeek setup on this page has not been re-verified on a ROM. See Progress. |
Versions and model capabilities
Verification used an Android 16 / API 36 / ARM64 emulator. The DeepSeek catalog at that time was text-only; remove images and screenshots for your first task.
Configure DeepSeek and make your first call
Open model connections
In the Taku assistant, open Settings → Model connections. The page contains ChatGPT sign-in, the local gateway's model/routing-group list, Manage models and routing, and Refresh model services. For the current Chinese device interface, match these labels:
Settings → Model connections 设置 → 模型连接
ChatGPT sign-in ChatGPT 登录
Manage models and routing 管理模型与路由
Refresh model services 刷新模型服务
Current: local Magpie 当前:本地 MagpieAn empty model list is an expected first-use state; add your service next. If Magpie is missing or unavailable, resolve the component issue with runtime troubleshooting before continuing.
Add DeepSeek on the device
Select Manage models and routing. In the local Magpie management page, add a DeepSeek API service using its DeepSeek preset, enter your own API key, and save.
| Setting | Value used in this tutorial |
|---|---|
| Service | Official DeepSeek API; prefer Magpie's DeepSeek preset |
| API base URL | Official OpenAI-compatible base https://api.deepseek.com; the preset manages this when used |
| API key | A valid key from your DeepSeek API account, entered only in the on-device management page |
| Upstream model ID | Verification used deepseek-flash; use the models actually available to your account |
See the DeepSeek API documentation for the official address and key entry point. DeepSeek manages API authorization. Configure this separately from the Taku OS ChatGPT sign-in.
Magpie exposes models as “service ID/model ID.” With service ID deepseek, the catalog ID is deepseek/deepseek-flash, displayed during verification as DeepSeek-V4.1-Flash · DeepSeek. If your service has another ID, select the corresponding entry returned in your catalog.
This step is complete when the service is saved and the model is exposed in Magpie's catalog. A real model request has not been verified yet. Source code, APKs, and generic images do not include your API key or signed-in account.
Return to Taku and select the model
Use Android's system Back action to leave the management page. The assistant returns to Model connections for the current conversation and refreshes the catalog. Select Refresh model services if needed.
Under the local gateway's default model or routing group, select the DeepSeek model you just configured. Confirm the status reads Current: local Magpie, then return to the conversation.
Conversation history, drafts, and attachments are retained; the next turn uses the new selection. If switching is blocked by running or queued work, finish or stop the active task and check that no queued task remains before switching.
Verify a text reply first
Send a short request with no image attached:
Reply with only “Connection successful.”An actual reply, a completed turn, and no authentication or network error establish this model call for your service. A name appearing in the picker only establishes that the catalog can be read.
Verify a real device tool
Send a read-only request:
Use the device information tool to read the current Android version and device model. Answer from the tool result. Only query; do not change settings.Expand the conversation's execution log. Check that taku_phone.device_info actually completed and its values match your device. The emulator returns Android 16 and an ARM64 emulator model; those are that device's values, not an answer to copy for every device.
Success requires an actual model reply, a completed tool item, and matching device data. A claim of completion, or a text reply without a tool record, does not establish device execution. Continue with your first task for more result checks.
Switching connections and using routing groups
To return to the other connection, wait until idle and open Settings → Model connections → ChatGPT sign-in. Existing ChatGPT authorization remains in its original location and must still be valid. Both connections share native conversations and tools; model and reasoning-effort preferences are saved separately for each connection.
For a routing group, combine already configured models in Magpie's management page, return to the assistant, refresh, and select the group returned by the catalog. Routing groups are integrated and pass protocol tests. Multi-model failover stress tests and long sessions are not yet verified. Complete the single-model text and tool checks above before configuring a group.
The same gateway can manage Jev
Decision models are also called through on-phone Magpie and reuse service and credential management. Select one separately in Assistant settings → Jev decision model. It decides whether to show a hint; after you accept, the original Codex Agent executes the task. See Decision models and Jev. This does not change this page's DeepSeek scope or add screenshot support to a text-only model.
Common problems
| Symptom | What to check next |
|---|---|
| Gateway ready, but no models | Save an API service and expose the required model, then refresh in the assistant |
| Local Magpie temporarily unavailable | Check the on-device Magpie component and service; catalog reads use the device's loopback address |
| Model selectable, but authentication fails on send | Check the DeepSeek service's API key and account permission; ChatGPT authorization does not authorize this API |
| Network or certificate error after send | Check Android's own network path to DeepSeek and the runtime CA; the computer's network alone is insufficient |
| Image or screenshot rejected | The verified catalog is text-only; keep the draft and remove the attachment or select a model that actually supports images |
| Connection switch blocked | Finish or stop active work, check queued tasks, and retry while idle |
| Leaving management does not return to connections | Check the assistant version; older assistants lack automatic return and draft recovery. You can also return manually and select Refresh model services |
| Text works, but a device tool fails | Read the actual tool error and device permissions; follow runtime troubleshooting |
Optional read-only developer checks
Run these in a computer terminal. First use adb devices -l to identify an authorized target listed as device, then replace emulator-5634 with its serial:
adb devices -l
adb -s emulator-5634 shell /system_ext/bin/codex --version
adb -s emulator-5634 shell /system_ext/bin/magpie --version
adb -s emulator-5634 shell getprop init.svc.taku_magpieThe versions verified for this page were Codex 0.161.0 and Magpie 0.1.1290; your device may differ. The service should report running. Version and process checks establish local components, not a working API or tool call. If components are missing, see Codex device setup and emulator preparation.
Implementation and references
Protocol checks used an explicitly simulated model upstream. Actual DeepSeek conversation and device-tool execution were verified separately against the real service. Android adaptation for Bun plugins and subscription sign-in is not yet verified.
See current progress for other device scopes.
Research preview · Current availability
Report an issue or give feedback
Delivery to the maintenance queue does not mean it has been handled. Feedback is retained for 90 days.
Built with Fumadocs