哈基米云 HACHIMI
CLOUD哈基米云
AI API GATEWAY

Top models, OpenAI-compatible. 主流模型,OpenAI 兼容中转。

Hachimi Cloud relays GPT models in OpenAI-compatible format. Carpool the cost, keep native tools working out of the box. 哈基米云以 OpenAI 兼容格式中转 GPT 系列模型。拼车共享、分摊成本,原生工具开箱即用、无缝直连。

OpenAI-compatible GPT Carpool sharing拼车共享
ready
$ curl api.hachimi.cloud/v1/models
# Multi-channel OpenAI-compatible routing
GPT gpt-6.2-sol ● ready 128ms
store: false · sticky sessions · load-balanced
$ curl /v1/chat/completions -d '{"stream":true}'
data: {"model":"gpt-6.2-sol","delta":"Hello! Ready to code."}
data: {"delta":" ⚡ Speed: 84 tok/s | Cost: ¥0.0004"}
data: [DONE]
HTTP/2 200 OK · 0-retry fallback
$ ping -c 3 gateway.hachimi.cloud
64 bytes from hk-edge-01: icmp_seq=1 time=28.4 ms
64 bytes from ty-edge-02: icmp_seq=2 time=36.1 ms
64 bytes from us-edge-01: icmp_seq=3 time=114.2 ms
--- 0.0% packet loss · BGP Anycast ---
喵~ OpenAI 格式直连,已省 85% Token!🐾

01Models & Pricing模型与定价

Prices in CNY (¥) per 1M tokens.价格以人民币(¥)/百万 Token计。

Model模型 Input输入 Output输出 Cache write (5m)缓存写入(5m)? Cache read缓存读取?
gpt-6.2-astra ¥3.2 ¥12 ¥0 ¥0.16
gpt-6.2-sol ¥0.5 ¥2.5 ¥0 ¥0.05
gpt-6.1-terra ¥0.25 ¥1.25 ¥0 ¥0.025
gpt-6-luna / codex-auto-review ¥0.05 ¥0.25 ¥0 ¥0.005

Note: The site displays the $ currency symbol, but top-ups are credited 1:1 in CNY — all pricing is actually in CNY (¥).注:站内显示的货币符号为 $,但人民币按 1:1 充值计入,实际均为人民币(¥)计价。

02Why Hachimi Cloud为什么选哈基米云

OpenAI-compatible relayOpenAI 兼容中转

Reach GPT models in OpenAI-compatible format. Point Claude Code, Codex or OpenCode at it and native tools just work.以 OpenAI 兼容格式访问 GPT 系列模型。Claude Code、Codex、OpenCode 直连即用,原生工具无缝可用。

Carpool & pooling拼车 · 账号池

Multi-account load balancing with sticky sessions. Share subscriptions, split the bill, and stay efficient.多账号负载均衡 + 粘性会话。订阅拼车共享,分摊成本,更高效。

Realtime billing实时计费配额

Usage metered in real time with transparent quotas — see exactly where every token goes.用量实时计费,额度透明可查 —— 每个 token 的去向一目了然。

03Works with your tools兼容你的工具

Drop-in for the agents and providers you already use.无缝接入你已经在用的 Agent 与模型厂商。

CCClaude Code CXCodex OCOpenCode CSCC Switch
GGPT AAntigravitysoon即将

04Codex quick startCodex 快速开始

Recommended setup with CC Switch推荐用 CC Switch 配置

Download CC Switch下载 CC Switch

Choose the installer for macOS, Windows, or Linux. After installing, open the Codex panel in CC Switch. 选择 macOS、Windows 或 Linux 的安装包,安装后打开 CC Switch 的 Codex 面板。

  1. Select Codex in the left sidebar. Click Add Provider in the top right and choose Custom Configuration. 在左侧选择 Codex,点击右上角的「添加供应商」,然后选择「自定义配置」。
  2. Fill in the provider form. 在供应商表单中填写以下字段。
    • Name名称 Hachimi Cloud
    • API Key Your Hachimi Cloud API key你的哈基米云 API Key
    • API Request URLAPI 请求地址 https://api.hachimi.cloud/v1
    • Default Model默认模型 gpt-6.2-sol
  3. Scroll to config.toml (TOML), set model_reasoning_effort = "high" at the top level, and check Enable remote compaction at the top right of the editor. 向下滚动到 config.toml (TOML) 区域,将顶层的推理档位设为 model_reasoning_effort = "high",并勾选编辑器右上方的「启用远程压缩」。
  4. Optional. Check 1M Context Window if your model supports it. To use WebSocket in Direct mode, set supports_websockets = true in the Hachimi Cloud provider section of the editor. 可选。模型支持时,可勾选「1M 上下文窗口」。如需在直连模式使用 WebSocket,将编辑器中当前供应商小节下的 supports_websockets 设为 true。
  5. Click Add, switch to Hachimi Cloud in Direct mode, then fully quit and reopen Codex. 点击「添加」,回到「直连」列表并切换到 Hachimi Cloud,然后完全退出并重新打开 Codex。

Optional if you have a ChatGPT account. To keep access to features such as official plugins and remote control from your phone, complete these two steps before switching to Hachimi Cloud. 有 ChatGPT 账号时可选。若想继续使用账号可用的官方插件和手机远程操作等功能,请先完成下面两步,再切换到 Hachimi Cloud。

  1. Choose OpenAI Official in CC Switch, then sign in to your ChatGPT account in Codex. 在 CC Switch 中切换到 OpenAI Official,然后在 Codex 中登录你的 ChatGPT 账号。
  2. In CC Switch Settings, under Codex, turn on Keep official login for direct switches. 在 CC Switch 的「设置 → 应用配置 → Codex」中开启「非接管切换时保留官方登录」。

Codex configuration referenceCodex 配置参考 config.toml

model_provider = "OpenAI"
model = "gpt-6.2-sol"
web_search = "live"
model_reasoning_effort = "high"

[model_providers.OpenAI]
name = "OpenAI"
base_url = "https://api.hachimi.cloud/v1"
model_catalog_url = "https://api.hachimi.cloud/v1/models"
wire_api = "responses"
requires_openai_auth = false
supports_websockets = false