---
url: 'https://docs.byesu.com/en/tools/config-generator.md'
description: >-
  Generate copy-ready Claude Code, Codex CLI, Cursor, Cline, Dify, LobeChat,
  OpenAI Python, and Vercel AI SDK configs for byesu in one click.
---

# AI Client & SDK Config Generator

Pick your coding agent, workflow platform, or SDK below to generate an exact, copy-ready configuration for **Claude Code, Codex CLI, Cursor, Cline, Dify, LobeChat, OpenAI Python SDK, Vercel AI SDK, or `curl`** — pre-checked against every `/v1` path rule and authentication header nuance.

## Endpoint path quick reference (`/v1` vs root URL)

Most `404 Not Found` setup mistakes happen when a client appends `/v1/messages` or `/chat/completions` on top of an incompatible base URL. Match your tool to the exact address below:

| Client / SDK | Base URL to enter | Why |
| --- | --- | --- |
| [Claude Code CLI](/en/clients/claude-cli) (`~/.claude/settings.json`) | `https://byesu.com` | Appends `/v1/messages` automatically; use `ANTHROPIC_AUTH_TOKEN` |
| [Codex CLI](/en/clients/codex-cli) (`~/.codex/config.toml`) | `https://byesu.com/v1` | Requires `wire_api = "responses"` + `requires_openai_auth = true` |
| [Cursor](/en/clients/cursor) | `https://byesu.com/v1` | Enable **Override OpenAI Base URL** before clicking **Verify** |
| [Cline](/en/clients/cline) (Anthropic provider) | `https://byesu.com` | Native `/v1/messages` routing + `0.1x` prompt cache reads |
| [Cline](/en/clients/cline) (OpenAI Compatible) | `https://byesu.com/v1` | Calls GPT-6.2, Gemini 4, DeepSeek V4, and Grok 4.7 |
| [Dify](/en/clients/dify) & [LobeChat](/en/clients/lobechat) | `https://byesu.com/v1` (OpenAI) · `https://byesu.com` (Anthropic) | Keep streaming enabled and raise node timeouts ≥ 120s for reasoning models |
| [Vercel AI SDK](/en/clients/vercel-ai-sdk) (`@ai-sdk/anthropic`) | `https://byesu.com/v1` | **Exception:** `@ai-sdk/anthropic` appends `/messages` (not `/v1/messages`), so `/v1` is required |

## Related tools & guides

* [Live Model Selector & Latency Explorer](/en/tools/model-selector) · [LLM Token Cost Calculator](/en/tools/token-cost-calculator) · [Image API Cost Calculator](/en/tools/image-cost-calculator)
* [3-Step Quickstart](/en/guide/quickstart) · [Choosing a Token Group](/en/guide/groups) · [Prompt Caching (`0.1x` reads)](/en/guide/prompt-caching) · [Common Errors & Fixes](/en/errors)

## FAQ

### When should I use `https://byesu.com` vs `https://byesu.com/v1`?

Use `https://byesu.com` (without `/v1`) for Anthropic-native integrations that append `/v1/messages` automatically — including Claude Code CLI, Cline's Anthropic mode, Dify's Anthropic plugin, and LobeChat's `ANTHROPIC_PROXY_URL`. Use `https://byesu.com/v1` for OpenAI-compatible clients/SDKs **and** for Vercel's `@ai-sdk/anthropic` package (which appends `/messages` instead of `/v1/messages`).

### Is pasting my `sk-` token into this page safe?

Yes. Token substitution runs strictly in your browser's reactive memory (`ref`) to update the code snippet on screen. Nothing is sent to any server, analytics script, `localStorage`, or cookie.

### Why does Codex CLI fail when `wire_api` is set to `"chat"`?

Modern Codex CLI removed legacy Chat Completions provider support and communicates over `/v1/responses`. Keep `wire_api = "responses"` and `requires_openai_auth = true` in `~/.codex/config.toml`, with `"OPENAI_API_KEY"` stored in `~/.codex/auth.json`.

### Can one token call all nine models in the picker?

Yes. Every model in the picker (`claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5`, `gpt-6.2-sol`, `gpt-6.2-astra`, `gemini-4-argon`, `deepseek-v4-pro`, `deepseek-v4.1-flash`, `grok-4.7`) is covered by a single default **`auto`**-group token, billed pay-as-you-go with transparent multipliers (`input 1x · output 5x · cache read down to 0.1x`).
