Skip to content
/ claco Public

A proof-of-concept for a tos-compliant Claude Code proxy

Notifications You must be signed in to change notification settings

emi0x7d1/claco

Repository files navigation

Claco

A proof-of-concept TOS-compliant Claude Code "proxy" for third-party clients.

CleanShot.2026-02-22.at.23.13.16.mp4

Building

  1. Install Rust
  2. Build cargo build

If you want to use it with Zed, you must serve the agent archive:

  1. Install Deno.
  2. Run server
$ deno run -A serve-agent.ts
  1. Run Zed: Install dev extension in Zed's command palette and select the zed-claco directory.

If you make any changes and wish to update your extension, you must first delete the old agent binary because Zed caches the archive and your changes won't be reflected.

$ rm -r ~/Library/Application\ Support/Zed/external_agents/claco/

Then you must: uninstall the old extension, restart Zed and install the extension again ¯\(ツ)

Using

claco-acp-agent contains an Agent implementation for the Agent Client Protocol that you may use in editor such as Zed and Intellij. You may point your editor to it.

claco-termulator allows you to run processes in a headless terminal and attach to it from other terminals. It also lets you inspect the terminal state to help with debugging.

$ claco-termulator run -- nvim # Runs neovim in our own PTY
$ claco-termulator attach # Stream the neovim session

zed-claco: see Building

Limitations

Unfortunately, I do not have the time to maintain this but I am willing to contribute if someone else takes over.

Aside from that, I can't afford Claude Pro so I have been testing with a recorded asciinema session behind an ollama proxy so I'm not sure if the behavior might change due to this.

The current implementation is very alpha quality and only works for:

  • Sending regular prompts
  • Receiving tool call responses
  • Receiving text responses

It does not work yet for:

  • Responding Claude's questions
  • More...

About

A proof-of-concept for a tos-compliant Claude Code proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published