{"id":50701085,"url":"https://github.com/sydasif/litellm-proxy","last_synced_at":"2026-06-09T09:02:37.680Z","repository":{"id":354618529,"uuid":"1223819977","full_name":"sydasif/litellm-proxy","owner":"sydasif","description":"Claude, Opencode and Zed Proxy to use Gemma 4 models via Gemini API","archived":false,"fork":false,"pushed_at":"2026-06-06T15:39:02.000Z","size":25154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-06T17:20:07.822Z","etag":null,"topics":["claude","claude-code","gemini-api","gemma4","litellm","opencode","opencode-ai","zed","zed-editor"],"latest_commit_sha":null,"homepage":"","language":null,"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/sydasif.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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-28T17:27:28.000Z","updated_at":"2026-06-06T15:39:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sydasif/litellm-proxy","commit_stats":null,"previous_names":["sydasif/opencode-proxy","sydasif/litellm-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sydasif/litellm-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sydasif%2Flitellm-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sydasif%2Flitellm-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sydasif%2Flitellm-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sydasif%2Flitellm-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sydasif","download_url":"https://codeload.github.com/sydasif/litellm-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sydasif%2Flitellm-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34098952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["claude","claude-code","gemini-api","gemma4","litellm","opencode","opencode-ai","zed","zed-editor"],"created_at":"2026-06-09T09:02:33.344Z","updated_at":"2026-06-09T09:02:37.673Z","avatar_url":"https://github.com/sydasif.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Proxy Gateway\n\n[![LiteLLM](https://img.shields.io/badge/Powered%20by-LiteLLM-blueviolet?style=for-the-badge)](https://github.com/BerriAI/litellm)\n[![Claude Code](https://img.shields.io/badge/Claude%20Code-D97757?style=for-the-badge\u0026logo=anthropic\u0026logoColor=white)](https://claude.com/product/claude-code)\n[![Google Gemini](https://img.shields.io/badge/Backend-Google%20Gemini-4285F4?style=for-the-badge\u0026logo=google\u0026logoColor=white)](https://deepmind.google/technologies/gemini/)\n[![OpenCode Zen](https://img.shields.io/badge/Backend-OpenCode%20Zen-6C47FF?style=for-the-badge)](https://opencode.ai)\n[![Zhipu AI](https://img.shields.io/badge/Backend-Zhipu%20AI-1E8FFF?style=for-the-badge\u0026logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMCAxOGMtNC40MSAwLTgtMy41OS04LThzMy41OS04IDgtOCA4IDMuNTkgOCA4LTMuNTkgOC04IDh6IiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==)](https://open.bigmodel.dev/)\n[![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge\u0026logo=docker\u0026logoColor=white)](https://www.docker.com/)\n\nA proxy gateway that routes Claude Code through LiteLLM to multiple backends — Gemini, OpenCode Zen, and Zhipu AI.\n\n---\n\n## Features\n\n- **Docker Native**: Official images, no build step.\n- **Secure**: Environment-based API key management.\n- **Flexible**: Single-proxy deployment for Claude Code.\n\n---\n\n## Project Structure\n\n```\nlitellm-proxy/\n├── docker-compose.yml\n├── .env              # API keys\n├── .gitignore\n├── AGENTS.md\n├── README.md\n└── litellm/\n    └── config.yaml   # Model mappings\n```\n\n---\n\n## Prerequisites\n\n- [Docker Desktop](https://docs.docker.com/get-docker/) or Docker Engine\n- [Docker Compose](https://docs.docker.com/compose/install/)\n- API keys for the backends you plan to use (see `.env.example` for required keys)\n\n---\n\n## Quick Start\n\n### 1. Configure Environment\n\n```bash\ncp .env.example .env\n# Edit .env and add your API keys (GEMINI_API_KEY, OPENAI_API_KEY, ZAI_API_KEY)\n```\n\n### 2. Fix Config File Permissions\n\nThe container runs as UID 1000, so the config file must be readable by that user:\n\n```bash\nsudo chown 1000:1000 litellm/config.yaml\n```\n\n### 3. Deploy Proxy\n\n```bash\ndocker compose up -d\n```\n\nLiteLLM proxy is now running at `http://localhost:4000`.\n\n---\n\n---\n\n## Model Mappings\n\nAll model-to-backend mappings live in `litellm/config.yaml`. That file is the source of truth — see it for the full list of exposed models and their backend routes.\n\n---\n\n## Using with Claude Code\n\nTo redirect `claude` to your local LiteLLM proxy, update your global `settings.json` file:\n\n\u003e Model names in `ANTHROPIC_DEFAULT_*` must match a `model_name` entry in `litellm/config.yaml`.\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_BASE_URL\": \"http://localhost:4000/\",\n    \"ANTHROPIC_AUTH_TOKEN\": \"sk-xxx\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"gemma-4-31b-it\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"gemini-3.1-flash-lite-preview\",\n    \"ANTHROPIC_DEFAULT_HAIKU_MODEL\": \"gemma-4-26b-a4b-it\"\n  }\n}\n```\n\n---\n\n## Docker Customization\n\nIf you need to change the default port, modify the `ports` section in `docker-compose.yml`:\n\n```yaml\nservices:\n  litellm:\n    ports:\n      - \"4001:4000\"\n```\n\nAfter changing the port, restart:\n\n```bash\ndocker compose down\ndocker compose up -d\n```\n\n---\n\n## Reference\n\n| Action                  | Command                                       |\n| :---------------------- | :-------------------------------------------- |\n| **Start**               | `docker compose up -d`                        |\n| **Stop**                | `docker compose down`                         |\n| **View Logs**           | `docker compose logs -f`                      |\n| **View Logs (LiteLLM)** | `docker compose logs -f litellm`              |\n| **Restart**             | `docker compose restart`                      |\n| **Update**              | `docker compose pull \u0026\u0026 docker compose up -d` |\n| **Health Check**        | `curl http://localhost:4000/health`           |\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsydasif%2Flitellm-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsydasif%2Flitellm-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsydasif%2Flitellm-proxy/lists"}