What Is an AI Agent? 3 Chatbot Differences and Token Cost
An AI agent is a model-driven program that calls tools and works in multiple steps. See how Claude Code and Codex loop, and why agents burn more tokens.
Blog
Troubleshooting guides, IP and privacy explainers, AI service updates and model watch — each backed by tools and data you can check yourself.
An AI agent is a model-driven program that calls tools and works in multiple steps. See how Claude Code and Codex loop, and why agents burn more tokens.
CLAUDE.md is the file Claude Code reads at the start of every session. Where it lives, how it loads, what /init generates, plus a template and a checklist.
Claude Code slash commands and shortcuts grouped by session, context, permissions and config, with when to use each one and how to choose /compact vs /clear.
Switch Claude Code models with /model per session, or set a default via ANTHROPIC_MODEL or settings.json. Precedence, verification, and third-party model names.
Claude Code login failed? Tell OAuth from API Key first, then check service status, network, and env var conflicts. Includes a table and a six-step checklist.
An LLM gateway sits between your app and several model APIs, handling routing, billing and failover. Learn where it fits and use a 6-point checklist.
The ChatGPT unusual activity message is a security notice, not a ban. Check status, network exit, browser and request rate in 5 steps, then contact OpenAI.
Sharing a ChatGPT or Claude account breaks the credential terms and risks exposed chats and bans. Learn what the terms say and the pay-as-you-go alternative.
A 7-point checklist for using a Claude account safely: supported regions, matching payment info, no sharing or resale, content policy, 2FA, and alternatives.
IP is one risk signal, not the only cause, and no IP guarantees safety. Learn why platforms check your network exit, how to self-check, and the API route.
No foreign credit card? Four legitimate ways to pay for an AI API in RMB, from domestic providers to gateways, plus an eight-point checklist to run before you buy.
Overseas AI APIs usually provide an English invoice or receipt, not a Chinese VAT invoice. A 4-step checklist for seller entity, contract, and documents.
Cursor day-one setup in six steps: import VS Code settings, write a rules file, check models and API, confirm Privacy Mode, learn shortcuts, test the network.
Compare native Windows and WSL installs of Claude Code, then set it up in WSL in 6 steps and fix the common path, performance, and environment variable problems.
Install commands for Claude Code on each OS, how to verify with claude --version, and a lookup table for the three usual failures: permissions, PATH and network timeouts.
AI coding has no single monthly price, but you can estimate it: size your daily tokens, apply official rates, and compare pay-as-you-go with a subscription.
How to calculate LLM API costs: input tokens × input price + output tokens × output price. A 4-step method and worked table for per-call and monthly cost.
Chat Completions sends a list of messages to a model and returns choices. Learn the system, user and assistant roles, message order, and a multi-turn example.
A 7-row table comparing Anthropic Messages and OpenAI Chat Completions: path, auth header, system prompt, max_tokens, response shape, streaming, tools.
Minimal Node.js examples for the OpenAI API with the official SDK and native fetch, plus env vars, an error table, and why API keys must stay off the frontend.
Write your first working Python call with the official openai SDK: virtualenv, env vars, a minimal chat, streaming and error handling, plus an error table.
A copy-paste curl command for the OpenAI API, explained line by line, with Windows cmd and PowerShell quoting and what 401, 404, and 429 mean.
Use $env: for a temporary key, setx or the System Properties dialog for a permanent one, then open a new terminal. Steps, checks and pitfalls for OPENAI_API_KEY.
Pick an AI coding tool by form first, then by how you connect it. Compare CLI agents, editor plugins and AI IDEs, with a 5-step checklist for choosing.