Install and use the Unbound CLI to authenticate, set up AI tools, and manage your gateway from the terminal
The Unbound CLI lets you authenticate, configure AI coding tools, and manage your Unbound AI Gateway — all from the terminal. It handles login, tool setup, and teardown in a single command.
The CLI can automatically configure AI coding tools to route through Unbound. Each command handles authentication, environment variables, and tool-specific configuration.
unbound setup <tool>
Tool
Command
Cursor
unbound setup cursor
Claude Code
unbound setup claude-code
Gemini CLI
unbound setup gemini-cli
Codex
unbound setup codex
For tools like Roo Code, Cline, and Kilo Code, get your API key at gateway.getunbound.ai/connect and follow the setup instructions on each tool’s integration page.To remove Unbound configuration from a tool:
unbound setup <tool> --clear
If you are not logged in, the CLI will automatically open your browser to authenticate before proceeding with setup.
For detailed setup instructions for each tool, see the Integrations section.
The CLI also supports managing policies, users, groups, and connected tools from the terminal. Use --help on any command to see available options.
unbound policy list # List policiesunbound users list # List organization membersunbound user-groups list # List user groupsunbound tools list # List connected toolsunbound status # Check API connectivity
All list and get commands support --json for machine-readable output.