DEV Community

Germey
Germey

Posted on

One Coding Budget, Two Protocols: Configure Claude Code and Codex with AceDataCloud

If you use both Claude Code and Codex, the practical problem is not installing another client. It is keeping credentials, protocols, model selection, and usage in one understandable budget.

This guide is for developers who already work in terminal-based coding agents and want a protocol-first setup. The current AceDataCloud Coding Plan starts with Coding Plus at US$14.645677, with a ¥99 CNY display anchor, 500 promotional Credits, and a 30-day term. That is 400 base Credits plus a 100-Credit limited-time bonus; the public offer is scheduled to end November 30, 2026. Checkout remains authoritative.

This is a time-limited, usage-metered multi-model API plan—not an official Claude or ChatGPT consumer subscription, not unlimited usage, and not a lifetime entitlement.

Start with the protocol, not the model name

Coding clients are not interchangeable API shells. The Coding Plan exposes several public API families, including:

  • Claude Messages and Count Tokens
  • OpenAI Responses
  • OpenAI-compatible Chat Completions for several model ecosystems

Claude Code expects Anthropic-style environment variables and the Messages workflow. Codex uses an OpenAI-style provider and the Responses protocol. A model being visible in the catalog does not prove that every client can call it through every protocol.

Use this order:

  1. Choose the client.
  2. Use its documented protocol and endpoint.
  3. Query the current model directory.
  4. Confirm the exact model ID against credential scope, protocol, and client.
  5. Run a small read-only task before allowing edits.

The current plan covers model ecosystems including Claude, GPT/Codex, GLM, Kimi, and DeepSeek. Availability changes, so avoid hard-coding a permanent catalog into onboarding docs.

Minimal Claude Code configuration

Create or open a Coding Application in AceDataCloud and copy its API key. A key from another application may not have the same scope.

For macOS, Linux, or WSL, add this to ~/.zshrc or ~/.bashrc:

export ANTHROPIC_BASE_URL="https://api.acedata.cloud"
export ANTHROPIC_AUTH_TOKEN="YOUR_CODING_APPLICATION_KEY"
unset ANTHROPIC_API_KEY
Enter fullscreen mode Exit fullscreen mode

Reload the shell, enter a repository, and launch the client:

source ~/.zshrc
cd /path/to/project
claude
Enter fullscreen mode Exit fullscreen mode

For project-local configuration, use .claude/settings.local.json and keep it in .gitignore:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.acedata.cloud",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_CODING_APPLICATION_KEY"
  }
}
Enter fullscreen mode Exit fullscreen mode

Do not commit the real key to shared .claude/settings.json. ANTHROPIC_API_KEY should be genuinely unset rather than assigned an empty string, because an old variable makes troubleshooting ambiguous.

Minimal Codex CLI configuration

Install Codex and put the Coding Application key in an environment variable:

npm install -g @openai/codex
export ACEDATACLOUD_API_KEY="YOUR_CODING_APPLICATION_KEY"
Enter fullscreen mode Exit fullscreen mode

Add a custom 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"]
Enter fullscreen mode Exit fullscreen mode

Then start Codex:

cd /path/to/project
codex
Enter fullscreen mode Exit fullscreen mode

Run /model, verify that the provider is acedatacloud, and select an available compatible model. Windows users should use the PowerShell authentication command in the Coding Plan setup center.

Discover models without assuming compatibility

Use the live directory instead of copying an old list:

curl https://api.acedata.cloud/v1/models \
  -H "Authorization: Bearer YOUR_CODING_APPLICATION_KEY"
Enter fullscreen mode Exit fullscreen mode

Each returned id is a candidate for a request's model field. However, the directory is global; it is not automatically filtered to your Coding credential. Cross-check the selected ID against the application's API scope and the client protocol.

This is why “one token” should not be read as “every model works everywhere.” The plan centralizes access and metering; the client-protocol combination still defines what is valid.

Verify the setup before real work

Use an intentionally boring test:

  1. Ask the client to read README.md and summarize it in one sentence.
  2. Confirm that no file changed with git status --short.
  3. Open AceDataCloud Usage History and verify that the call appeared.
  4. Check the Coding Application balance and confirm Credits were deducted.
  5. Only then try a bounded edit, such as adding one test for a named function.

For a 401, check the complete key, conflicting environment variables, and whether the client was fully restarted. For an unavailable model, refresh /v1/models, then check the exact ID, API scope, protocol, and client compatibility. An insufficient-balance error belongs in the Coding Application; the plan does not automatically fall back to a general balance.

Route tasks by need, then control the budget

A multi-model plan is most useful when model choice is explicit. Keep one client/profile for repository exploration, another for a difficult refactor, and a third for focused review. Do not assign roles based on assumed prices or benchmark claims; inspect current model information and your own usage records.

Credits can be deducted separately for uncached input, output, cache writes, and cache reads. Long context, tool calls, repeated agent loops, and parallel work can change consumption. Put hard boundaries in prompts: name the directory, define the deliverable, limit unrelated edits, and request a summary before a second pass.

All current tiers have the same Coding model access and differ mainly in included Credits. Renewing before expiry carries remaining Credits forward and extends the term by 30 days. Unused Credits expire at the end of the term; there is no automatic renewal, and renewing after expiry starts a new term with only the new package amount.

The result is a clean architecture: client → matching protocol → compatible model → one metered Coding Application. That separation makes switching tools easier without pretending that every model, endpoint, and coding agent is interchangeable.

References

Source: Ace Data Cloud public product documentation and pricing data.

Top comments (0)