Skip to content

A lightweight proxy that allows Claude Code to use the Fireworks.ai API without the 5K token streaming limitation.

License

Notifications You must be signed in to change notification settings

TonyGeez/claude-code-fireworks.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Claude Code ↔ Fireworks Proxy

A lightweight proxy that allows Claude Code to use the Fireworks.ai API without the 5K token streaming limitation.
It translates Anthropic-style requests into Fireworks-compatible requests, supporting both streaming and non-streaming modes and tool calls.

Features

  • Local proxy between Claude Code and Fireworks.ai
  • Automatic streaming for all requests (>5K token support)
  • Tool call support
  • Logging of requests and responses in /logs
  • Easy model switching with included selector script
  • Written in TypeScript, runnable via tsx or npm global bin

Requirements

  • Node.js 18+
  • Fireworks.ai API key
  • Claude Code (or Anthropic-compatible client)

Installation

You can install globally from npm:

npm install -g claude-code-fireworks.ai
ccf init

This will create ~/.claude-code-fireworks

mv ~/.claude-code-fireworks/.env.example ~/.claude-code-fireworks/.env

Update .env with your Fireworks API key and choose model FIREWORKS_API_KEY=fw_... FIREWORKS_MODEL=accounts/fireworks/models/kimi-k2-instruct

Start the proxy server and Claude Code

ccf start

To change model directly:

ccf model

About

A lightweight proxy that allows Claude Code to use the Fireworks.ai API without the 5K token streaming limitation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published