Client setup
ZhenAPI.ai Toolkit Guide
Download Toolkit for Windows, sign in through your browser and import an API key into your agents. Learn how to check usage, restore configurations and update Toolkit.
ZhenAPI.ai Toolkit is a Windows desktop app. Authorize it once in your browser, then check your balance and usage, manage API keys, and write a key and its models into Codex, Claude Code and 11 other agents in one click. No hand-editing config files: every write is backed up and encrypted first, so you can always roll back.
Download for Windows
No installer. Download it and double-click to run; on first launch it offers to update to the latest version. A macOS version will follow.
If your browser says the file "isn't commonly downloaded", choose "Download suspicious file" or "Keep". If Windows says it "protected your PC", click "More info → Run anyway". Why?
Quick start
- Download and openKeep it in a permanent folder and double-click
- Authorize in browserMatch the pairing code, then authorize
- Import a keyPick a key and model, preview, then apply
- Launch your agentReopen the client and use ZhenAPI models
Supported agents:
Codex and ChatGPT Desktop share one configuration, so a single import covers both.
Step 1: Download and open
- Click the download button above to get
zhenapi-toolkit.exe. Only download it from zhenapi.ai, never from a forwarded copy. - Move it to a folder you plan to keep and can write to, such as
D:\Tools\ZhenAPI. Updates replace this file in place, so don't leave it in Downloads to be cleaned up, and don't put it inC:\Program Files. - Double-click to run. The app is not code-signed yet, so Windows may show "Windows protected your PC". Click More info → Run anyway.
Step 2: Authorize in your browser
Your password never passes through Toolkit. You sign in on the website with a password, GitHub or Google.


- Open Toolkit and click Sign in with browser. Your default browser opens the authorization page on zhenapi.ai. Sign in first if needed.
- Toolkit shows a pairing code like
XXX-XXX. Keep this window open. - If the browser didn't open, click Reopen browser, or click "Copy link" and paste it into a browser on this computer.

- Check that the pairing code exactly matches the one in Toolkit.
- Make sure the computer name is the one you're using.
- Click Authorize. The browser comes back to this page with "Authorized", and this computer shows up in the list below; Toolkit opens the Overview within a few seconds.
Step 3: Get to know the Overview
After you sign in, Toolkit opens the Overview. Almost everything starts here.

- Account balance: "Top up" opens the top-up page in your browser.
- Active keys: opens the API keys page.
- Status light: what each agent is connected to. See the colors below.
- Row actions: "Import key", "Launch" and the "···" menu.
- Update configuration: appears when a key's group or models change. Open it to see which models were added or removed; nothing is written until you confirm.
- Install: install an agent that isn't on this computer yet. Installed agents show "Upgrade" when a new version is out.
You can filter the list to installed agents. After installing or removing a client, click "Detect again".
Step 4: Install or upgrade an agent (skip if installed)

- After you click "Install", Toolkit lists the commands it will run. They run in order and stop as soon as one succeeds.
- Review them and click Start. Output appears line by line.
- Agents with an official installer use it first. npm installs try the China mirror
registry.npmmirror.comfirst, then the official registry. - If Node.js is missing on Windows, Toolkit installs Node.js LTS with winget first.
- ChatGPT Desktop and Claude Desktop are upgraded with winget. Quit the app first, or use "Quit and upgrade".
- WorkBuddy, DeepSeek Harness Desktop and Cherry Studio only offer "Get app", which opens their website. Install them, then click "Detect again".
Step 5: Import a key
No key yet? Go to "API keys" in the sidebar and click "Create API key". See Manage API keys.
1. Choose a key and model

- API key: choose by name, group and last four characters. Only keys that work with this agent are listed.
- Model: keep "All models" to import every model the key can use, or choose one to make it the default at launch.
- Click Preview changes.
2. Review and apply

- The file path to change, such as
~\.codex\config.tomlfor Codex. - The changes line by line: green is added, red is removed.
- If everything looks right, click Apply changes. The original file is backed up and encrypted first.
If you see "Another program changed a file after the preview", go back and preview again. Toolkit won't overwrite changes it hasn't shown you.
3. Restart the client

- If the client is running, Toolkit offers Restart ChatGPT Desktop or Restart Claude Desktop; Codex also offers to restart the Codex daemon. Save your work first.
- Click Later to skip; the change applies next time you open the client.
How each agent picks up the change
| Agent | After importing |
|---|---|
| Codex / ChatGPT Desktop | One import covers both. Start a new Codex session, or quit ChatGPT Desktop completely and reopen it. The desktop app switches to accountless mode; use "Restore official sign-in" to switch back. |
| Claude Code | New Claude Code processes use the new config, and /model lists every model for the key. The VS Code extension shares the CLI config: enable "Disable Login Prompt" in its settings and reload the window if needed. |
| Claude Desktop | The import page lists models Claude Desktop can use. Quit Claude from the tray or menu, then reopen it. |
| OpenCode, Pi, Cline | Reopen the client (Cline CLI or VS Code) and pick a ZhenAPI model in the model list. |
| Grok Build, Hermes Agent | Start a new session in the client. |
| OpenClaw | The config loads automatically. In an open session, run /model default to switch to the new default model. |
| WorkBuddy | Quit and reopen WorkBuddy, then pick a model in your task. |
| CodeBuddy | Pick a model in CodeBuddy IDE. The interactive CLI may still ask you to sign in to CodeBuddy the first time. |
| DeepSeek Harness Desktop | New sessions use the new default model; switch an existing session with /model. |
| Cherry Studio | Click "Import in Cherry Studio", confirm in Cherry Studio, then sync models. On first launch, finish or skip Cherry Studio's setup wizard first. |
Use one key in several agents
On the API keys page, click "Apply" on a key's row to write it into several agents at once.

- Select the agents. Only installed agents that work with this key are listed.
- Choose a default model for each one.
- Click Preview changes, review each agent, then confirm. Cherry Studio still needs to be confirmed in the client.
Manage API keys

- Create API key: enter a name and pick a group. You can also use a custom key and set a total spending limit, limits per period (5 hours, 1 day, 7 days) and an expiration.
- Copy the full key.
- View usage: opens Usage filtered to this key.
- Edit: change the name, group or limits, or clear "Enable this key" to pause it.
- Apply: write the key into several agents. See the previous section.
Deleting a key asks you to check its name and last characters. It can't be undone, and any agent using it needs another key.
Usage

- Period: Today, Yesterday, Last 7 days, Last 30 days. Today and Yesterday are shown by hour, the rest by day.
- Key filter: all keys, or just one.
- Refresh: data is cached for 60 seconds; refresh to fetch the latest.
- Recent requests: model, tokens, duration and actual cost per request, with paging. Very recent requests may take a moment to appear.
Launch an agent
After importing, click "Launch" on the agent's row in the Overview. CLI agents ask for a working folder and open in a terminal with the new config; desktop apps open directly.
If OpenClaw's terminal asks "Update NodeJS", type Y and press Enter.
Backups, restore and more

| Menu item | What it does |
|---|---|
| Restore official sign-in | Codex, Claude Code, Claude Desktop: removes the ZhenAPI config and returns to official account sign-in. Review, then click "Confirm restore". |
| Remove ZhenAPI | Other agents: removes the ZhenAPI provider Toolkit added and leaves the rest of the config alone. |
| Restore backup | Go back to the config from before a given change. See below. |
| Session history sync | Codex only: move your local official Codex sessions under ZhenAPI so you can keep viewing them, or move them back. Sessions with encrypted reasoning may not continue after switching. |
| Configuration details | Config file location, current address and model. Environment variable conflicts are handled here too; see the FAQ. |
| Uninstall | Uninstall the CLI or desktop app. Optionally delete the config files (backed up and encrypted first) and clean up dependencies and caches. |
"Restore official sign-in" and "Remove ZhenAPI" appear only when the agent is set up for ZhenAPI.

- Official baseline: your original config from before Toolkit's first change, kept forever. The latest 30 other backups are kept, each labeled with a reason (before import, before restore, before restoring official sign-in, before clearing environment variables, before uninstall).
- Pick one and click Restore this backup, review, click "Confirm restore", then reopen the client.
Backups are encrypted with AES-256-GCM, and the key is kept in Windows Credential Manager. Cherry Studio manages its own providers, so they aren't part of Toolkit's backups.
Update Toolkit
The official release checks for updates at launch and every 6 hours after that. When a new version is available, a notice pops up in the bottom-right corner and a red dot appears on "Settings" in the sidebar.


- The red dot means an update is ready. You can also open Settings and click Check for updates any time.
- Save your work, then click Update and restart. Toolkit verifies the signature, replaces itself and restarts. If the new version fails to start, it rolls back.
- Settings can Create shortcut on the desktop, and Toolkit also offers it on first launch.
Settings also lets you change the theme (System, Light, Dark) and display language (简体中文, 繁體中文, English).
Security and privacy
- You only enter your password on zhenapi.ai. Toolkit never sees it.
- Sign-in tokens and the backup encryption key are stored in Windows Credential Manager.
- Keys always show as
********in previews, and Toolkit only changes the files listed there. - For a computer you no longer use, sign it out on the console Desktop Toolkit page or in Toolkit.
FAQ
Browsers and Windows show this for newly released apps that few people have downloaded yet. It does not mean a virus was found. Each new version would start with no download history, so this page keeps the same download file and Toolkit updates itself to the latest version in one click.
Chrome / Edge: in your downloads, choose "Download suspicious file" or "Keep". Windows SmartScreen: click "More info", then "Run anyway".
Only download from this page or the zhenapi.ai home page. Online updates check the official signature and reject tampered packages.
Keep Toolkit open and click "Reopen browser", or "Copy link" and open it in a browser on the same computer. If the request timed out or was denied, click "Cancel" and then "Sign in with browser" again for a new pairing code. If you've hit the device limit, sign out an unused computer on the console Desktop Toolkit page.
Quit and reopen the client as described in How each agent picks up the change. If that doesn't help, check the status light.
Red means the connection fails: check whether the key is paused, expired or out of quota. For Claude Code or Codex, open "··· → Configuration details" and see whether user environment variables (such as ANTHROPIC_* or OPENAI_*) override the config. Click "Clear with backup", then open a new terminal and try again.
Click "···" on the agent's row. For Codex, Claude Code and Claude Desktop choose "Restore official sign-in"; for other agents choose "Remove ZhenAPI". Review, confirm, reopen the client and sign in to your official account if needed. To return to the exact state before Toolkit changed anything, use "Restore backup" and pick "Official baseline".
Only keys that work with the agent are listed. Groups restricted to Claude Code appear only for Claude Code and Claude Desktop, and groups restricted to Codex only for Codex. Groups with only image models can't be used with agents. Use or create a key in a suitable group.
Open "Settings → App updates" and click "Check for updates". "Update and restart" appears only when a newer version has been released. If you see "Online updates are disabled in this build", you aren't running the official release; download it again with the button on this page. If updating fails, make sure the folder containing the exe is writable.
Only Windows x64 is available now; macOS will follow. On other systems, set up your agent manually with the Codex, Claude Code and other setup guides.