whatisgithub

What is claude-code-cliproxy-advisor?

mamajiaa/claude-code-cliproxy-advisor — explained in plain English

Analysis updated 2026-05-18

2GoAudience · developerComplexity · 4/5Setup · hard

In one sentence

A setup guide and Go plugin that reroutes Claude Code through a local proxy so its Sonnet, Haiku, and Advisor roles are answered by GLM, Grok, and a third model called SOL instead of Anthropic.

Mindmap

mindmap
  root((repo))
    What it does
      Reroutes Claude Code models
      Local proxy setup
      Advisor protocol bridge
    Tech stack
      Go
      CLIProxy
      Claude Code
    Use cases
      Use Claude Code with GLM or Grok
      Get a second opinion via Advisor
      Run everything locally
    Requirements
      Existing API keys
      OAuth logins
      Go for one time build
    Audience
      Developers
      AI power users

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

Run Claude Code's interface while having requests answered by GLM or Grok instead of Anthropic models.

USE CASE 2

Get a second opinion from a separate model through Claude Code's built in Advisor feature.

USE CASE 3

Keep all model routing local on your own machine using API keys and logins you already own.

What is it built with?

GoCLIProxyClaude Code

How does it compare?

mamajiaa/claude-code-cliproxy-advisoranomalroil/1keyanshuman852/dasan-router-cli
Stars222
LanguageGoGoGo
Last pushed2019-05-17
MaintenanceDormant
Setup difficultyhardmoderatemoderate
Complexity4/53/53/5
Audiencedeveloperops devopsops devops

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

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires existing API keys and OAuth logins for multiple providers plus a one time Go build step.

So what is it?

This repository is a setup guide, written in Chinese, for changing which AI models power Claude Code, Anthropic's command line coding assistant, without changing how you use the tool itself. Instead of always talking to Anthropic's own models, your requests get routed through a small local proxy program to a mix of other providers, while Claude Code's interface and workflow stay exactly the same. The guide sets up three pieces working together. Claude Code remains the assistant you actually type into. A local router program called CLIProxy sits between Claude Code and the internet, intercepting requests and forwarding them to whichever model you have actually configured, based on which built in Claude model name you selected. A small plugin, written in Go and compiled into a platform specific library file, teaches that router how to speak Claude Code's own Advisor protocol, a feature where a second model can be consulted for a second opinion, an architecture review, or a risk check before the main model gives its final answer. Under this setup, selecting Sonnet routes you to a model called GLM, selecting Haiku routes you to a model called Grok, and invoking the Advisor feature routes that specific request to a third model referred to as SOL. Everything runs on the user's own machine using API keys and login credentials the user already has for those other providers, so no new subscription is created, only local configuration. Installing Go is only needed once, to compile the plugin into a file your operating system can load, either a dylib, so, or dll file depending on whether you are on macOS, Linux, or Windows. After that one time build step, Go is not needed for daily use, and the guide provides a single shell function that launches Claude Code preconfigured to talk to the local proxy instead of Anthropic directly. The guide is unusual in that it is explicitly written as a set of instructions meant to be followed automatically by an AI coding assistant carrying out the deployment, rather than a person typing each command by hand, and it includes checks at the end to confirm every model and the Advisor feature are working correctly before declaring the setup finished.

Copy-paste prompts

Prompt 1
Walk me through installing CLIProxy and building the Advisor Bridge plugin for Claude Code on macOS.
Prompt 2
Explain how this setup maps Claude Code's Sonnet, Haiku, and Advisor roles to GLM, Grok, and SOL.
Prompt 3
Help me verify my CLIProxy setup is correctly registering all seven expected model IDs.
Prompt 4
Create the claudex shell function from this guide and explain what each environment variable does.

Frequently asked questions

What is claude-code-cliproxy-advisor?

A setup guide and Go plugin that reroutes Claude Code through a local proxy so its Sonnet, Haiku, and Advisor roles are answered by GLM, Grok, and a third model called SOL instead of Anthropic.

What language is claude-code-cliproxy-advisor written in?

Mainly Go. The stack also includes Go, CLIProxy, Claude Code.

How hard is claude-code-cliproxy-advisor to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is claude-code-cliproxy-advisor for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.