guide-client-config

Configure Claude Code and Codex CLI to route through Protocol Proxy.

4|Updated May 9, 2026
One-click install
npx skills add https://github.com/liaoxinjie666/protocol-proxy --skill guide-client-config
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guide-client-config
Source: https://github.com/liaoxinjie666/protocol-proxy/tree/main/skills/system/guide-client-config
Command: npx skills add https://github.com/liaoxinjie666/protocol-proxy --skill guide-client-config

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you correctly point Claude Code, Codex CLI, and other OpenAI/Anthropic-compatible Agent tools at Protocol Proxy so requests get routed through the right proxy port and authentication.

Core Features & Use Cases

  • Claude Code environment setup: Configure Anthropic-compatible base URL and token so Claude Code can reach your running proxy and benefit from automatic protocol conversion.
  • Codex CLI TOML configuration: Set a proxy-backed model provider, choose the appropriate API wire format (responses/chat), and select the model and retry/timeout behavior.
  • General OpenAI-compatible tool guidance: Use a consistent mapping of API Base URL and API Key to work with SDKs and tools that support OpenAI-style endpoints.

Quick Start

Ask: “How do I set ANTHROPIC_BASE_URL and OPENAI_BASE_URL to my Protocol Proxy port so Claude Code and Codex CLI can connect and use the right models?”

Frequently Asked Questions about guide-client-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set ANTHROPIC_BASE_URL and OPENAI_BASE_URL to route Claude Code through my proxy?

To set ANTHROPIC_BASE_URL and OPENAI_BASE_URL, configure these environment variables to point to your running Protocol Proxy port, ensuring Claude Code routes requests through the correct proxy authentication and automatic protocol conversion.

How do I configure Codex CLI TOML to use a proxy-backed model provider?

To configure Codex CLI TOML, set your proxy-backed model provider by defining the API base URL, selecting the appropriate wire_api format (responses or chat), and specifying model and retry/timeout behavior mappings.

Does Claude Code work with OpenAI-compatible proxy endpoints for protocol routing?

Yes, Claude Code works with OpenAI-compatible proxy endpoints by applying correct environment-variable mappings like ANTHROPIC_BASE_URL and authentication tokens aligned with your Protocol Proxy port for transparent provider routing.

What environment variables are required to connect Codex CLI to a Protocol Proxy?

Connecting Codex CLI to a Protocol Proxy requires setting the API Base URL, OPENAI_API_KEY, and TOML mappings for wire_api, ensuring requests route through the specified proxy port and authentication.

Why is my agent client not routing correctly after changing the API Base URL?

If your agent client is not routing correctly after changing the API Base URL, it is likely due to misaligned environment variables or missing proxy authentication tokens required by the Protocol Proxy configuration.