whatisgithub

What is cc-visionrouter?

able-rip/cc-visionrouter — explained in plain English

Analysis updated 2026-05-18

29JavaScriptAudience · developerComplexity · 2/5Setup · easy

In one sentence

A transparent proxy that automatically routes image-containing requests from Claude Code to a multimodal model so sessions do not fail on image input.

Mindmap

mindmap
  root((cc-VisionRouter))
    What It Does
      Detect image requests
      Route to multimodal model
      Route text to primary model
      Handle background calls
    Tech Stack
      JavaScript
      Node.js
      npm
    Use Cases
      Long running sessions
      Avoiding image errors
      Model switching
    Audience
      Claude Code users
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Keep a long Claude Code session running even when it uses a model without image support.

USE CASE 2

Automatically route requests with images or PDFs to a multimodal model, and text to your primary model.

USE CASE 3

Prevent internal compact and summarization calls from failing due to earlier images in context.

What is it built with?

JavaScriptNode.jsnpm

How does it compare?

able-rip/cc-visionrouteraisatan/poe2direnikiforovall/pi-inspect
Stars292929
LanguageJavaScriptJavaScriptJavaScript
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires Claude Code and a restart after starting or stopping the proxy, only supports the Anthropic Messages API format.

So what is it?

cc-VisionRouter is a transparent proxy that sits between Claude Code and an upstream AI API. Its purpose is to solve a specific problem: when you use Claude Code with a model that does not support images, and an image appears anywhere in the conversation context, the API call fails and the session ends. For long-running autonomous tasks that may have accumulated dozens of turns, this can mean losing a significant amount of work with no way to resume automatically. The proxy inspects every outgoing request. If the request contains an image or a document such as a PDF treated as visual input, it redirects that request to a multimodal model you specify. All other plain-text requests go to your preferred primary model. The switch happens automatically, with no manual model-switching commands needed during a session. It also handles the background requests that Claude Code generates internally, such as compact and summarization calls that run across the full conversation history. Because those run over the entire context, which may contain earlier images, the proxy routes them to the multimodal model as well. Installation is through npm. After installation, running cc-visionrouter start rewrites the ANTHROPIC_BASE_URL setting in Claude Code's configuration file to point to the local proxy and backs up the original value. Running cc-visionrouter stop restores the original settings. Claude Code must be fully restarted after starting or stopping the proxy to pick up the changed setting. The proxy supports the Anthropic Messages API format only and does not support OpenAI-format endpoints directly. An interactive configuration menu walks through model selection, and the setup process runs a minimal test call to verify the configuration before saving it.

Copy-paste prompts

Prompt 1
Walk me through installing and starting cc-VisionRouter for my Claude Code setup.
Prompt 2
Help me configure cc-VisionRouter to route images to [multimodal model name] and text to [primary model name].
Prompt 3
Explain what happens to Claude Code's compact and summarization calls when cc-VisionRouter is running.
Prompt 4
How do I stop cc-VisionRouter and restore my original Claude Code configuration?

Frequently asked questions

What is cc-visionrouter?

A transparent proxy that automatically routes image-containing requests from Claude Code to a multimodal model so sessions do not fail on image input.

What language is cc-visionrouter written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, npm.

How hard is cc-visionrouter to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is cc-visionrouter for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.