{"id":38978383,"url":"https://github.com/thetokencompany/claude-compression-proxy","last_synced_at":"2026-01-18T17:00:47.044Z","repository":{"id":332067579,"uuid":"1132576994","full_name":"TheTokenCompany/claude-compression-proxy","owner":"TheTokenCompany","description":"Compression proxy for Claude Code enabling up to 60% savings on Claude quota","archived":false,"fork":false,"pushed_at":"2026-01-12T08:27:50.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T18:08:41.367Z","etag":null,"topics":["api","claude","claude-code","compression","docker","fastapi","llm","proxy","quota"],"latest_commit_sha":null,"homepage":"https://thetokencompany.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheTokenCompany.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-12T06:46:46.000Z","updated_at":"2026-01-12T09:25:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/TheTokenCompany/claude-compression-proxy","commit_stats":null,"previous_names":["thetokencompany/claude-compression-proxy"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/TheTokenCompany/claude-compression-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTokenCompany%2Fclaude-compression-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTokenCompany%2Fclaude-compression-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTokenCompany%2Fclaude-compression-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTokenCompany%2Fclaude-compression-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheTokenCompany","download_url":"https://codeload.github.com/TheTokenCompany/claude-compression-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTokenCompany%2Fclaude-compression-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28543495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","claude","claude-code","compression","docker","fastapi","llm","proxy","quota"],"created_at":"2026-01-17T16:49:45.867Z","updated_at":"2026-01-18T17:00:47.033Z","avatar_url":"https://github.com/TheTokenCompany.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Compression Proxy\n\nSave tokens and money by compressing Claude Code API requests using [The Token Company](https://thetokencompany.com) API.\n\nCode understanding works extremely well with medium compression aggressiveness (0.1 - 0.6) improving Claude Code subscription quota up to 66 %.\n\nhttps://github.com/user-attachments/assets/1a0f5d76-59cd-4e03-a107-222729518f7b\n\n\n## Setup (3 steps)\n\n**1. Install**\n\nClone the repository and run\n```bash\n./install.sh\n```\n\n**2. Add your API key to `~/.zshrc` or `~/.bashrc`**\n\nGet compression API key from [The Token Company](https://thetokencompany.com)\n\n```bash\nexport TTC_KEY=\"your_token_company_api_key\"\nexport PATH=\"$HOME/.local/bin:$PATH\"\n```\n\n**3. Reload your shell**\n```bash\nsource ~/.zshrc\n```\n\nDone! Now use `claude-c` instead of `claude`.\n\n## Usage\n\n```bash\n# Use Claude with compression\nclaude-c\n\n# Adjust compression level (0-1, higher = more compression)\nclaude-c -0.8\n```\n\n## Requirements\n\n- Docker ([Get Docker](https://docs.docker.com/get-docker/))\n- Claude Code ([Get Claude Code](https://github.com/anthropics/claude-code))\n- Token Company API key ([Sign up](https://thetokencompany.com))\n\n## How It Works\n\n```\nClaude Code → Claude Compressor (localhost:8877) → Anthropic API\n                     ↓\n              Compress via The Token Company API\n```\n\nThe `claude-c` wrapper automatically starts the Docker container and routes your requests through the compression proxy.\n\n## Troubleshooting\n\n**Container won't start?**\n```bash\ndocker rm -f claude-compressor\n./install.sh\n```\n\n**Check if it's working:**\n```bash\ntail -f ~/claude-compressor.log\n```\n\n**Reset everything:**\n```bash\ndocker rm -f claude-compressor\ndocker rmi claude-compressor:latest\n./install.sh\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetokencompany%2Fclaude-compression-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthetokencompany%2Fclaude-compression-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetokencompany%2Fclaude-compression-proxy/lists"}