Programming Assistant
Claude Code Custom Model Configuration and Usage Tips
· ☕ 5 min read
References: Claude Code Configuration, Environment Variables, Connecting to an LLM Gateway Claude Code talks to the Anthropic Messages API. When connecting to a custom gateway, use the env block of settings.json to override the endpoint and the model. 1. Where the Configuration File Lives The user configuration is at ~/.

Codex Custom Model Configuration and Usage Tips
· ☕ 2 min read
References: Codex Configuration Basics, Codex Advanced Configuration Codex uses the OpenAI Responses API. When connecting to a custom gateway, define the endpoint with [model_providers.<id>], and the top-level model and model_provider determine the actual call. 1. Where the Configuration File Lives The user configuration is at ~/.codex/config.toml by default (on Windows,

OpenCode Custom Model Configuration and Usage Tips
· ☕ 2 min read
References: OpenCode Config, Providers OpenCode uses the OpenAI Chat Completions API. When connecting to a custom gateway, declare the endpoint and the model list in the provider block of opencode.jsonc. 1. Installation and Configuration File 1 npm install -g opencode-ai The user configuration is at ~/.config/opencode/opencode.jsonc by default (opencode.json also

Using Gemini CLI on a Server
· ☕ 3 min read
1. Get the Project ID and API Key Visit https://aistudio.google.com/apikey Get the project ID and API key, and set them as environment variables 1 2 echo "export GOOGLE_CLOUD_PROJECT=" >> ~/.bashrc echo "export GEMINI_API_KEY=" >> ~/.bashrc 1 source ~/.bashrc 2. Prepare the Node.js Environment Install nvm 1 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh |