Skip to content

TensorBlock/claude-code-forge

Repository files navigation

TensorBlock

Claude Code Forge

Website Twitter Discord 🤗 Hugging Face Telegram

English | 简体中文 | 日本語 | 한국어

A simple setup utility to use TensorBlock Forge with Claude Code, enabling you to access any supported model through Claude's interface.

What is this?

This repository provides startup scripts that configure Claude Code to use TensorBlock Forge as the API provider, allowing you to:

  • Use a wide variety of models beyond Claude's default offerings
  • Access models like Qwen Coder, Gemini, and many others through Claude Code

Prerequisites

  1. Claude Code: Make sure you have Claude Code installed
  2. TensorBlock Forge API Key: Sign up at forge.tensorblock.co and get your API key

Setup

1. Get your API key

  1. Visit TensorBlock Forge
  2. Sign up for an account
  3. Add your model provider API keys
  4. Generate a Forge key from your dashboard

2. Configure the script

Edit the appropriate script for your platform and replace YOUR_TENSORBLOCK_FORGE_API_KEY with your actual API key:

For Linux/Mac (start_claude_code.sh):

export ANTHROPIC_AUTH_TOKEN=your_actual_forge_key_here

For Windows (start_claude_code.bat):

set ANTHROPIC_AUTH_TOKEN=your_actual_forge_key_here

3. Make the script executable (Linux/Mac only)

chmod +x start_claude_code.sh

Usage

Linux/Mac

./start_claude_code.sh

Windows

start_claude_code.bat

Default Configuration

The 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 modify these models in the script files to use any model available on TensorBlock Forge.

Self-Hosting TensorBlock Forge

For users who want complete control over their API keys and infrastructure, you can self-host TensorBlock Forge on your own machine or server. This gives you enhanced privacy, custom configuration options, and direct control over your AI provider integrations.

To get started with self-hosting, visit the TensorBlock Forge repository for complete setup instructions, security considerations, and configuration options.

Available Models

TensorBlock Forge supports many models. Check their model catalog for the full list of available models and their identifiers.

License

This project is licensed under the terms specified in the LICENSE file.

About

Setup scripts for using TensorBlock Forge with Claude Code - access any AI model through Claude's interface

Topics

Resources

License

Stars

Watchers

Forks