AionUI
AionUI is a multi-agent desktop GUI that brings direct API chat models and local CLI coding agents (such as Claude Code, Codex CLI, and Gemini CLI) into a single workspace. You can connect RKAPI both as a direct custom model provider in AionUI Settings and as the backend for the CLI agents AionUI launches underneath.
1. Add a Custom Provider in AionUI Settings
Open AionUI, go to Settings → Model / Providers, and click Add Custom Provider (or edit an existing provider). Match the Base URL to the protocol you select:
| Provider Protocol | Base URL | Notes |
|---|---|---|
| OpenAI-Compatible | https://api.zwwbai.com/v1 | Works with GPT, DeepSeek, Gemini, and OpenAI-compatible channels |
| Anthropic | https://api.zwwbai.com | Native Claude Messages API (do not append /v1) |
| Gemini | https://api.zwwbai.com | Native Gemini API (do not append /v1 or /v1beta) |
Fill in the fields:
- Name:
RKAPI(or separate entries likeRKAPI (OpenAI)andRKAPI (Anthropic)). - Base URL: Choose the exact URL from the table above.
- API Key: Paste your
<YOUR_API_KEY>created in the RKAPI Console. - Models: Click Fetch Models or add exact
<model-id>values from RKAPI Pricing, then save.
2. Configure Underlying CLI Agents Inside AionUI
When you launch a CLI agent panel inside AionUI, AionUI invokes the locally installed CLI binary and inherits its local config files and environment variables. Configure each CLI agent first so AionUI routes every agent turn through RKAPI:
Claude Code in AionUI
Ensure Claude Code is installed and configured following Claude Code Setup.
Confirm
~/.claude/settings.jsoncontains:json{ "env": { "ANTHROPIC_BASE_URL": "https://api.zwwbai.com", "ANTHROPIC_AUTH_TOKEN": "<YOUR_API_KEY>" } }
Codex CLI in AionUI
- Install and configure Codex CLI following Codex CLI Setup.
- Confirm
~/.codex/config.tomlpoints tobase_url = "https://api.zwwbai.com/v1"and~/.codex/auth.jsonholds your RKAPI key.
Gemini CLI in AionUI
Install Gemini CLI and expose the RKAPI endpoint and key in your user environment (see Environment Preparation and Gemini FAQ):
bashexport GOOGLE_GEMINI_BASE_URL="https://api.zwwbai.com" export GEMINI_API_KEY="<YOUR_API_KEY>"powershell[Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://api.zwwbai.com", "User") [Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "<YOUR_API_KEY>", "User")
Restart AionUI After Editing CLI Configs
Desktop apps snapshot environment variables at launch. After modifying ~/.claude/settings.json, ~/.codex/config.toml, or OS environment variables, fully quit and reopen AionUI so newly spawned CLI sessions pick up your changes.
3. Verify Responses
- Direct API chat: Open a new conversation, select an RKAPI model from the model picker, and send
Reply with OK to confirm connectivity. - CLI agent session: Open a workspace folder in AionUI, choose Claude Code, Codex, or Gemini CLI, and ask it to inspect a file in the repository. Verify the streaming response completes cleanly and tool calls execute as expected.
Troubleshooting
- CLI agent not detected in AionUI: Confirm the binary (
claude,codex, orgemini) runs in a regular terminal and that its install directory is included in your systemPATH(see Environment Preparation). 404 Not Foundon direct provider: Double-check that OpenAI-Compatible useshttps://api.zwwbai.com/v1, while Anthropic and Gemini usehttps://api.zwwbai.com.- Auth errors in a specific agent: Check Channel Availability and verify the key configured for that CLI agent belongs to a group supporting the requested model.
- Additional diagnostics: Review Claude Code FAQ, Codex FAQ, or Gemini FAQ.