Một CLI, nhiều tài khoản
Công việc và cá nhân. Gateway của khách và của bạn. CLI giờ coi tài khoản là thực thể hạng nhất:
anyr account add work # sign in to a second account
anyr account use work # switch the default
anyr whoami # who am I right now?
ANYROUTER_PROFILE=ci anyr claude # pin an account per shell or CI jobMỗi tài khoản giữ key, base URL và mặc định riêng trong ~/.anyrouter/config.yaml. --profile thắng cho một lệnh, ANYROUTER_PROFILE cho một shell, account use thì bền. anyr whoami luôn nói tài khoản nào đang active và key nằm đâu — đã che, không bao giờ in secret.
anyr logout giờ xóa hết thứ login đã lưu — keychain OS và file config — nhưng giữ setting của tài khoản, nên đăng nhập lại chỉ một bước.
API key mà không rời terminal
Đăng nhập trình duyệt giờ cũng lưu credential quản lý có scope, nên quản lý key ngay chỗ bạn đang đứng:
anyr keys list # * marks the key in use
anyr keys create laptop # minted and offered for storage in one step
anyr keys use # pick a key, switch to it
anyr keys revoke <hash> # gone (asks first)Credential quản lý chỉ list, tạo, và thu hồi key — không gì khác. Nó không chạy inference, không lệnh nào in nó, và anyr logout xóa nó. Trang keys trên dashboard vẫn cách một lệnh trần anyr keys.
Lập kế hoạch bằng mô hình mạnh, implement bằng mô hình nhanh
anyr task chạy pipeline hai pha: mô hình lập kế hoạch viết plan đánh số, mô hình implement thực thi đúng plan đó. Cả hai pha stream, và tóm tắt token in ở cuối.
anyr task "refactor this CSV parser to stream" \
--plan-model openai/gpt-5.2 \
--do-model z-ai/glm-4.7-flashGhép planner đắt với implementer rẻ lấy gần hết chất lượng với một phần chi phí — và --json làm cả pipeline script được.
Agent ủy thác cho nhau
Vì một key chạy mọi coding agent, agent giờ giao việc cho nhau được:
anyr delegate --to codex "add unit tests for src/utils/slug.ts"
anyr delegate --to claude "explain this stack trace" --model deepseek/deepseek-v3Agent đích chạy headless (claude -p, codex exec, opencode run) qua gateway với key đã lưu, stream output, và thoát với exit code của chính nó. Session agent đã đi qua AnyRouter có cùng khả năng dưới dạng tool call delegate_task, cầu sang CLI — output của agent được ủy thác quay lại cuộc hội thoại.
Guardrail có sẵn: ủy thác trần **một hop** — agent đã được ủy thác không được ủy thác tiếp — nên hai agent không ping-pong task (và spend) cho nhau. Chạy trên terminal xác nhận trước khi tiêu; script opt-in bằng --yes.
Thử ngay
Mọi thứ trên đã nằm trong anyr CLI hiện tại — không cài mới, không migration, và mọi lệnh bạn đã dùng vẫn hành xử như cũ.
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr auth loginDocs: accounts & keys, anyr task, delegation.
Bài liên quan
Run coding agents through one gateway
Point Claude Code, Codex, OpenCode, Cursor, or any OpenAI-compatible tool at AnyRouter and get one key for every model, unified billing, per-request audit logs, and app attribution. Two environment variables — or one npx command with the anyr CLI launcher.
Run Claude Code on AnyRouter — wrapper script or CLI
Route Claude Code through AnyRouter in two ways: a wrapper that installs itself and maps Opus, Sonnet, and Haiku to one catalog model (override with --model), or the anyr CLI launcher. One key, unified billing, audit logs.
Sign in with AnyRouter: let users bring their own LLM account
If your app needs an LLM API to run, you have two bad options: ship your own keys and eat every user's inference bill, or make each user paste in a raw provider key. "Sign in with AnyRouter" is the third option — users sign in with their AnyRouter account, and their own balance powers the inference. You get a temporary, inference-only key per user and never handle model billing.
Gửi request đầu trong hai phút
Bắt đầu miễn phí với key của bạn, hoặc nạp rồi trả theo token. Go: $4 credit/tháng — $2/tháng, hoặc miễn phí khi góp một provider key.
Bắt đầu miễn phí