claude-code-forge: Access Any AI Model Through Claude's Interface

Summary
claude-code-forge is a utility that enables users to access a wide array of AI models through the Claude Code interface. By configuring Claude Code to use TensorBlock Forge as its API provider, developers can leverage models like Qwen Coder and Gemini, expanding beyond Claude's default offerings. This repository provides simple setup scripts to integrate TensorBlock Forge seamlessly.
Repository Info
Tags
Click on any tag to explore related repositories
Introduction
claude-code-forge is a straightforward setup utility designed to integrate TensorBlock Forge with Claude Code. This powerful combination allows you to access and utilize a diverse range of AI models directly through Claude's familiar interface, moving beyond its default offerings.
This repository provides essential startup scripts that configure Claude Code to use TensorBlock Forge as the API provider. This means you can tap into models like Qwen Coder, Gemini, and many others, enhancing your development capabilities within the Claude Code environment.
Installation
To get started with claude-code-forge, follow these steps:
Prerequisites
- Claude Code: Ensure you have Claude Code installed on your system.
- TensorBlock Forge API Key: Sign up at forge.tensorblock.co and obtain your API key.
Setup Steps
- Get your API key:
- Visit TensorBlock Forge.
- Sign up for an account.
- Add your preferred model provider API keys.
- Generate a Forge key from your dashboard.
- Configure the script:
Edit the appropriate script for your platform and replace
YOUR_TENSORBLOCK_FORGE_API_KEYwith your actual API key.For Linux/Mac (
start_claude_code.sh):export ANTHROPIC_AUTH_TOKEN=your_actual_forge_key_hereFor Windows (
start_claude_code.bat):set ANTHROPIC_AUTH_TOKEN=your_actual_forge_key_here - Make the script executable (Linux/Mac only):
chmod +x start_claude_code.sh
Examples
Once configured, using claude-code-forge is simple:
Linux/Mac
./start_claude_code.sh
Windows
start_claude_code.bat
Default Configuration:
The provided scripts are pre-configured with:
- Primary Model:
Fireworks/accounts/fireworks/models/qwen3-coder-480b-a35b-instruct, a powerful coding model. - Fast Model:
Gemini/models/gemini-2.5-flash, for quick responses.
You can easily modify these models within the script files to use any model available on TensorBlock Forge.
Why Use It?
claude-code-forge offers several compelling advantages:
- Expanded Model Access: Utilize a wide variety of AI models beyond Claude's default offerings, including specialized coding models and faster response models.
- Unified Interface: Access diverse models through the familiar and intuitive Claude Code interface, streamlining your workflow.
- Flexibility: Easily switch between different models by modifying the configuration scripts.
- Self-Hosting Option: For enhanced privacy and control, you can self-host TensorBlock Forge, managing your API keys and infrastructure directly. Visit the TensorBlock Forge repository for more details.
Links
- GitHub Repository: TensorBlock/claude-code-forge
- TensorBlock Forge: forge.tensorblock.co
- TensorBlock Model Catalog: tensorblock.co/api-docs/model-ids
- TensorBlock Forge Self-Hosting: TensorBlock/forge