{"id":47778862,"url":"https://github.com/partysun/klava","last_synced_at":"2026-04-07T16:00:50.008Z","repository":{"id":348520084,"uuid":"1198558382","full_name":"Partysun/klava","owner":"Partysun","description":"Klava is a cli for dead-simple usage cli code agents with any providers. Use claude code with your OpenAI-like provider. Make any code agents more secure - filter out any leaking secret keys and crypto keys from your filesystem.","archived":false,"fork":false,"pushed_at":"2026-04-02T14:25:30.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-04T13:27:13.339Z","etag":null,"topics":["ai","codeagents","opencode"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Partysun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-01T14:35:58.000Z","updated_at":"2026-04-02T14:39:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Partysun/klava","commit_stats":null,"previous_names":["partysun/klava"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Partysun/klava","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Partysun%2Fklava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Partysun%2Fklava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Partysun%2Fklava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Partysun%2Fklava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Partysun","download_url":"https://codeload.github.com/Partysun/klava/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Partysun%2Fklava/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31437927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T13:13:19.330Z","status":"ssl_error","status_checked_at":"2026-04-05T13:13:17.778Z","response_time":75,"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":["ai","codeagents","opencode"],"created_at":"2026-04-03T12:40:22.224Z","updated_at":"2026-04-06T15:00:52.472Z","avatar_url":"https://github.com/Partysun.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# klava\n\nHigh-performance Rust proxy that translates Anthropic API requests to OpenAI-compatible format. Use Claude Code with OpenRouter, native OpenAI, or any OpenAI-compatible endpoint.\n\n## Features\n\n- **Fast \u0026 Lightweight**: Written in Rust with async I/O\n- **Universal**: Works with any OpenAI-compatible API (OpenRouter, Cloud.ru, local LLMs)\n\n### Launch AI Code Agent\n\nThe `launch` command starts the proxy server and launches an AI code agent with appropriate environment variables:\n\n```bash\n# Interactive selection - shows menu to choose agent\nklava launch\n\n# Launch specific agent directly\nklava launch claude\n\n# Launch with verbose logging\nklava launch claude --verbose\n```\n\nSupported code agents:\n\n| Agent      | Description    | Link                      |\n| ---------- | -------------- | ------------------------- |\n| `claude`   | Claude Code    | \u003chttps://code.claude.com\u003e |\n| `opencode` | OpenCode Agent | Coming soon               |\n\nThe launch command automatically:\n\n- Starts the proxy server in the background\n- Sets necessary environment variables (`ANTHROPIC_BASE_URL`, `ANTHROPIC_AUTH_TOKEN`, etc.)\n- Enables demo mode for the agent\n- Shuts down the proxy when the agent exits\n\nIf you run `klava up`, and you want to run claude manually use this command\n\n```\nANTHROPIC_BASE_URL=http://localhost:8085 claude\n```\n\nDont' forget to change port to your PORT of klava proxy server.\n\n## Known Limitations\n\nThe following Anthropic API features are **not supported** currently (Claude Code and similar tools working without these parameters):):\nMany of features like images, full list is not ready yet...\nIt's a WIP tool.\n\n## Troubleshooting \u0026 Known Pitfalls\n\n**Error: `KLAVA_BASE_URL is required`**  \n→ You must set the upstream endpoint URL. Examples:\n\n- OpenRouter: `https://openrouter.ai/api`\n- OpenAI: `https://api.openai.com`\n- Local: `http://localhost:11434`\n\n**Error: `405 Method Not Allowed`**  \n→ Your `KLAVA_BASE_URL` likely ends with `/v1`. Remove it!\n\n- ❌ Wrong: `https://openrouter.ai/api/v1`\n- ✅ Correct: `https://openrouter.ai/api`\n- The proxy automatically adds `/v1/chat/completions`\n\n**Model not found errors**  \n→ Set `REASONING_MODEL` and `COMPLETION_MODEL` to override the models from client requests\n\n## Testing\n\nThe project includes integration tests using [Hurl](https://hurl.dev/), a command line tool that can run HTTP requests defined in simple text files.\n\n### Installing Hurl\n\n```bash\n# macOS with Homebrew\nbrew install hurl\n\n# Linux\ncurl --proto '=https' --tlsv1.2 -sSf https://hurl.dev/install.sh | sh\n\n# Or from releases\n# https://github.com/Orange-OpenSource/hurl/releases\n```\n\n### Running Tests\n\nThe `tests.hurl` file contains comprehensive tests for all proxy endpoints:\n\n```bash\n# Run tests against local development server\nhurl --variable host=http://localhost:3000 --test tests.hurl\n\n# Run with mise task (uses localhost:8085)\nmise run test-hurl\n\n# Run without host variable (uses default from hurl file if set)\nhurl --test tests.hurl\n```\n\n## Contributing\n\nContributions welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpartysun%2Fklava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpartysun%2Fklava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpartysun%2Fklava/lists"}