AceDataCloud Coding Plan 配置指南:為 Claude Code、Codex 或 OpenCode 選擇三種協議
One Coding Plan, Three Protocols: Configure Claude Code, Codex, or OpenCode
AceDataCloud Coding Plan 的指南展示如何為 Claude Code、Codex CLI 和 OpenCode 選擇相應協議並配置憑證。
If you already use Claude Code, Codex CLI, or OpenCode, you do not need another editor. You need to choose the protocol that matches your client, configure one credential safely, and verify that requests are charged to the intended plan.
AceDataCloud Coding Plan is a 30-day, Credit-metered multi-model API package rather than an official Claude, ChatGPT, or IDE membership. At the time of writing, Coding Plus has a ¥99 CNY display anchor and a public USD price of about $14.65. It includes 400 base Credits plus a 100-Credit limited-time bonus through November 30, 2026. Higher tiers increase the Credit allowance; all four tiers list the same Coding model access scope.
This guide shows how to choose among the three supported interface families and configure a minimal client without hard-coding a secret.
Start with the client, not the model
The plan exposes three useful interface families:
| Interface | Best fit | Example clients |
|---|---|---|
| Claude Messages | Anthropic-native message and tool semantics | Claude Code |
| OpenAI Responses | Agent-style Responses workflows | Codex CLI |
| OpenAI-compatible Chat Completions | Broad custom-provider compatibility | OpenCode, Kimi Code, OpenClaw |
That distinction matters. “OpenAI-compatible” does not mean every client supports every model or every protocol feature. Pick the interface expected by your client first, then select a model from the models actually visible to your Coding credential.
The current product catalog spans Claude, GPT/Codex, GLM, Kimi, and DeepSeek families. Exact model IDs can change, so avoid copying an old ID from a blog post into permanent configuration. Query the live catalog or use the client’s model picker after authentication.
Option A: Claude Code with Claude Messages
For Claude Code, the smallest project-local configuration is .claude/settings.local.json:
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.acedata.cloud",
"ANTHROPIC_AUTH_TOKEN": "YOUR_CODING_PLAN_KEY"
}
}
Add this file to .gitignore. If you configure the shell instead, use:
export ANTHROPIC_BASE_URL="https://api.acedata.cloud"
export ANTHROPIC_AUTH_TOKEN="YOUR_CODING_PLAN_KEY"
unset ANTHROPIC_API_KEY
The final unset prevents an older credential from taking precedence. Restart the terminal and Claude Code after changing the environment.
Verify with a read-only request inside a repository:
Read README.md and return a one-sentence summary. Do not edit files.
Then check the Coding application’s usage history. A successful answer proves the client can authenticate; the corresponding usage record proves that the intended application and Credits handled the request.
Option B: Codex CLI with OpenAI Responses
Install Codex and keep the key in an environment variable:
npm install -g @openai/codex
export ACEDATACLOUD_API_KEY="YOUR_CODING_PLAN_KEY"
Add a provider to ~/.codex/config.toml:
model_provider = "acedatacloud"
[model_providers.acedatacloud]
name = "acedatacloud"
base_url = "https://api.acedata.cloud/v1"
[model_providers.acedatacloud.auth]
command = "sh"
args = ["-c", "echo $ACEDATACLOUD_API_KEY"]
Do not set a model ID until you have inspected the available list. Start codex, run /model, confirm the provider is acedatacloud, and choose a visible model. On Windows, use a PowerShell auth command as shown in the official integration guide.
Option C: OpenCode with Chat Completions
OpenCode is useful when you want an OpenAI-compatible provider and explicit model configuration. In ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"acedatacloud": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ace Data Cloud",
"options": {
"baseURL": "https://api.acedata.cloud/v1",
"apiKey": "{env:ACEDATACLOUD_API_KEY}"
},
"models": {
"MODEL_ID": { "name": "MODEL_ID" }
}
}
}
}
Export the key, replace both MODEL_ID values with an ID returned by the live catalog, and validate before opening a real project:
opencode auth list
opencode models acedatacloud
opencode run --model acedatacloud/MODEL_ID "Reply only OK"
This sequence separates three common failures: missing credentials, an undiscoverable model, and an invalid inference request.
Choose a tier by workload, not by model access
The entry tier is the safest way to measure a new workflow because the tiers differ mainly in allowance, not model-family access. Coding Plus currently provides 500 promotional Credits for 30 days: 400 base plus 100 bonus. Using the public USD price, the promotional effective package cost is approximately:
$14.645677 / 500 Credits = $0.02929 per Credit
Without the temporary bonus, the same calculation is about $0.03661 per base Credit. Credits are not prompts: uncached input, output, cache writes, and cache reads are metered separately, while context size, tools, model choice, and parallel work change consumption.
Run a representative task set—one repository summary, one test-writing task, and one bounded refactor—then inspect usage. That gives you a defensible tier decision without pretending that “one prompt” has a fixed cost.
Unused Credits expire at the end of the term unless you renew before expiry under the current carry-forward rule. The plan has no automatic renewal, so include the expiry date in your budget review.
Practical model assignment
A simple policy is more useful than switching models randomly:
- Use a strong code-understanding model for cross-file refactors and review.
- Use a lower-cost coding model for repetitive tests, documentation, and small fixes.
- Keep the same client when possible; switch the selected model, not the whole workflow.
- Re-run tests and review diffs regardless of model family.
This approach separates interface choice, model choice, and budget control. That is the main value of a multi-model coding package: familiar clients, a shared Credit pool, and an observable way to allocate work.
References
來源:DEV Community · dev.to