Installation
Requires Node.js 18+.unbound and unbound-cli are installed and refer to the same CLI — use whichever you prefer.
Debugging command conflicts
Ifunbound --version fails, prints unexpected output, or seems to invoke a different program, another tool on your system likely owns the unbound name and is taking precedence on your PATH.
Compare which binary each alias resolves to:
unbound-cli points at the Unbound CLI but unbound points elsewhere (or to nothing), something earlier on your PATH is shadowing it. Use unbound-cli directly while you investigate, or inspect the conflicting path:
- A different package providing an
unboundbinary was installed beforeunbound-cliand lives in an earlierPATHentry (e.g./usr/local/bin,/opt/homebrew/bin,/usr/sbin). - A shell alias or function defined in
~/.zshrc,~/.bashrc, or~/.profileis overriding the command. Check withalias unboundandtype unbound. - A previous install left a stale symlink. Remove it or reorder your
PATHso the npm global bin directory (npm bin -g) comes first.
which unbound and which unbound-cli resolve to the same path under your npm global install, the conflict is resolved.
Authentication
Login
Sign in via browser:Verify
Logout
Setting Up AI Tools
The CLI can automatically configure AI coding tools to route through Unbound. Each command handles authentication, environment variables, and tool-specific configuration.| Tool | Command |
|---|---|
| Cursor | unbound setup cursor |
| Claude Code | unbound setup claude-code |
| Gemini CLI | unbound setup gemini-cli |
| Codex | unbound setup codex |
If you are not logged in, the CLI will automatically open your browser to authenticate before proceeding with setup.
Managing Your Gateway
The CLI also supports managing policies, users, groups, and connected tools from the terminal. Use--help on any command to see available options.
--json for machine-readable output.
Custom Tenant Domains
If your organization runs Unbound on its own hosts — for exampleapi.acme.com instead of api.getunbound.ai — point the CLI at your tenant’s URLs.
Configure on login:
unbound config show.
Defaults
| URL | Default |
|---|---|
| Gateway | https://api.getunbound.ai |
| Frontend | https://gateway.getunbound.ai |
| Backend | https://backend.getunbound.ai |
Integrations
See setup instructions for each AI tool
Tool Policies
Configure security guardrails and cost controls

