What is Unbound Claude Code?

Unbound Claude Code is a command-line interface (CLI) tool that provides AI-powered coding assistance through Claude models, integrated with Unbound Security AI Gateway. This tool allows developers to get coding help, explanations, and suggestions directly from their terminal while maintaining enterprise-grade security, cost control, and compliance. By using Unbound Claude Code, all your AI requests go through the Unbound Security gateway with proper guardrails, routing, and monitoring.

Watch the Installation Process

For a detailed walkthrough of installing and configuring Unbound Claude Code, watch this demonstration: Watch this video for a step-by-step guide on installing and setting up Unbound Claude Code.

Prerequisites

Before installing Unbound Claude Code, ensure you have:
  • Node.js: Version 20 or higher installed on your system
  • npm: Node package manager (comes with Node.js)
  • Unbound Application: A configured application in your Unbound Security dashboard
  • Unbound API Key: Generated from your application settings

Installation and Configuration

Step 1: Install Unbound Claude Code

Install the CLI tool globally using npm:
npm install -g unbound-claude-code

Step 2: Configuration Process

During the installation process, you’ll be prompted with several configuration options:

Enter Your Unbound API Key

First, you’ll be prompted to enter your Unbound API key:
Enter your Unbound API key: 4922c*****cd9b9
✓ API key configured successfully

Vertex AI Configuration

Choose whether to use Vertex AI models: Option 1: Without Vertex AI Models
Do you want to use Vertex AI models? (y/n): n
✓ Vertex AI configuration saved
Option 2: With Vertex AI Models
Do you want to use Vertex AI models? (y/n): y
📋 Vertex AI Model Configuration:
• Primary model: claude-sonnet-6256d914
• Fallback model: claude-3-5-sonnet@20241022
Would you like to proceed with the default models? (y/n): y
✓ Vertex AI configuration saved

File Permission Setup

You’ll be asked to trust files in your project folder:
Do you trust the files in this folder?
/Users/User

Claude Code may read files in your folder. Reading untrusted files may lead Claude Code to behave in unexpected ways.
With your permission Claude Code may execute files in this folder. Executing untrusted code is unsafe.
https://docs.anthropic.com/en/claude-code-security

1. Yes, proceed
2. No, exit
Enter to confirm, Esc to exit

Step 3: Welcome Screen

After successful setup, you’ll see:
🎉 Welcome to Claude Code!
/help for help, /claude for your current setup

Overrides (via env):
• API Base URL: https://api.getunbound.ai

Using Unbound Claude Code

Basic Commands

Once installed and configured, you can use Claude Code with these commands:
  • /help: Display help information and available commands
  • /claude: Show your current setup and configuration
  • /exit: Exit Claude Code

Configuration Options

Environment Variables

You can override configuration using environment variables:
  • UNBOUND_API_KEY: Your Unbound API key
  • UNBOUND_API_BASE_URL: API base URL (default: https://api.getunbound.ai)
  • VERTEX_AI_ENABLED: Enable/disable Vertex AI models

Model Selection

Unbound Claude Code supports various Claude models:
  • Claude Sonnet: Balanced performance and speed
  • Claude Haiku: Fast and cost-effective
  • Claude Opus: Most capable for complex tasks
  • Vertex AI Models: Google’s Claude models (if enabled)