allrouter
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Basarisiz
- process.env — Environment variable access in bin/ar.js
- spawnSync — Synchronous process spawning in scripts/check.js
- fs.rmSync — Destructive file system operation in scripts/clean.js
- spawnSync — Synchronous process spawning in scripts/install-local.js
- fs.rmSync — Destructive file system operation in scripts/install-local.js
- spawnSync — Synchronous process spawning in scripts/prepublish.js
- process.env — Environment variable access in scripts/prepublish.js
- spawnSync — Synchronous process spawning in scripts/release.js
- spawnSync — Synchronous process spawning in scripts/smoke.js
- fs.rmSync — Destructive file system operation in scripts/smoke.js
- os.homedir — User home directory access in scripts/smoke.js
- process.env — Environment variable access in scripts/smoke.js
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Interactive local launcher and configuration manager for AI coding agents (Claude Code, Codex, OpenCode, Qwen, Hermes). Features an arrow-key UI, unified API settings, and security controls.
AllRouter
ar is a powerful, interactive, dropdown-first launcher for AllRouter-compatible AI coding agents. It serves as a single central hub to manage your accounts, models, endpoints, and CLI tools, providing a fast and unified experience.
Note: The tool has currently been tested with Hermes, OpenCode, and Claude Code so far.
✨ New Features in the Latest Release
- Dynamic Model Fetching & Tabbed Navigation: Models are now fetched dynamically from the provider API and neatly organized into intuitive tabs (press
TaborArrow Keysto switch). - Universal Bypass Mode: Toggle permissions globally for all connected AI agents (skip repetitive prompts automatically).
- Session History Table:
ar prevnow renders a beautiful aligned tabular history with access timestamps. - On-the-fly Account Renaming: Quickly rename your accounts through the interactive accounts menu.
- Model Aliases: Assign short aliases to lengthy model names (e.g.,
opus-thinktoclaude-opus-5-thinking) to speed up CLI launching.
⚡ Quick Start Flow
The ar command is your main entry point. Follow this simple flow to get started:
- Install:
npm install -g allrouter(Requires Node.js 20.11+) - Launch: Run
arto open the main menu. - Add Account: Select "Manage Accounts" -> "Add account" and paste your token.
- Configure Settings: Set your global security preferences (Normal Mode vs. Bypass Mode).
- Pick Tool & Model: Go to "Launch Tool", pick your agent, and easily Tab between providers to choose your preferred dynamic model.
🛠️ Commands & Shortcuts
ar is designed to be blazing fast and easy to use. You can launch tools interactively or use direct shortcuts.
Interactive Menus
ar # Open the main interactive menu
ar launch (or: ar l) # Launch a tool (Tool → Account → Model)
ar prev (or: ar p) # Resume a previous session from the history table
ar models (or: ar m) # Manage your AI models & aliases
ar accounts # Manage your accounts & rename them
ar endpoints # Manage your custom endpoints
ar tools # See all supported tools & install status
ar setup # View guided setup instructions for desktop/GUI clients
Direct Launch Shortcuts
Bypass the main menu and directly launch your favorite AI coding agent:
ar claude # Launch Claude Code
ar opencode # Launch OpenCode
ar hermes # Launch Hermes
ar codex # Launch Codex
ar qwen # Launch Qwen Code
ar pi # Launch Pi
ar crush # Launch Crush
Advanced CLI Tricks
ar prev --clear # Instantly clear your session history
ar claude --model <alias> # Launch using a custom model alias
ar l claude -- --resume 1 # Pass arguments directly to the underlying tool
✨ Why use AllRouter (ar)?
- Interactive UI: Navigate easily using arrow keys and dropdown menus instead of manually typing selections.
- Unified Account Store: Enter your API keys and accounts once, and reuse them instantly across any supported coding agent.
- Smart Protocol Routing: Models are protocol-aware (
anthropicvsopenai).arwill automatically choose the correct endpoint shape depending on the model you select. - Multiple Endpoints: Set up different profiles with both Anthropic and OpenAI-compatible URLs effortlessly.
- Wide Client Support: Direct launch adapters for the best CLI tools, plus built-in setup guides for GUI clients like Cursor, Trae, Roo Code, Cline, and more.
🔒 Security First
Your API secrets are treated with the utmost care. They will never appear in ar list, config files, or generated scripts.
- Windows: Tokens are securely encrypted using the current user's DPAPI (
ConvertFrom-SecureString), tying the keys strictly to your Windows user account. - macOS / Linux: Tokens are encrypted with AES-256-GCM using a random 32-byte key generated locally and stored securely at
~/.ar/master.key(with strict0600permissions).
👨💻 Development & Contributing
We welcome contributions! Please see our Contributing Guide for more details.
Handy Dev Commands:
npm run check # Run linter, verify files, and scan for secrets
npm test # Run unit and CLI tests
npm run smoke # Pack and install into a sandbox to verify the real binary
npm run verify # Run check, test, and smoke in order
npm run clean # Clean up temporary test files
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi