{"id":31608741,"url":"https://github.com/feiskyer/koder","last_synced_at":"2025-10-06T08:24:03.054Z","repository":{"id":315257540,"uuid":"1027780394","full_name":"feiskyer/koder","owner":"feiskyer","description":"Koder - An intuitive AI coding assistant and interactive CLI tool that boosts developer productivity with intelligent automation and context-aware support.","archived":false,"fork":false,"pushed_at":"2025-09-24T16:23:39.000Z","size":1351,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-25T07:51:44.496Z","etag":null,"topics":["agent","ai","claude","openai","vibe-coding"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feiskyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-07-28T14:20:17.000Z","updated_at":"2025-09-17T15:16:39.000Z","dependencies_parsed_at":"2025-09-17T16:41:04.807Z","dependency_job_id":"0aef8e00-7e75-4458-937e-d96548e5c74c","html_url":"https://github.com/feiskyer/koder","commit_stats":null,"previous_names":["feiskyer/koder"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/feiskyer/koder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feiskyer%2Fkoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feiskyer%2Fkoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feiskyer%2Fkoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feiskyer%2Fkoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feiskyer","download_url":"https://codeload.github.com/feiskyer/koder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feiskyer%2Fkoder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278578131,"owners_count":26009739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"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":["agent","ai","claude","openai","vibe-coding"],"created_at":"2025-10-06T08:24:01.508Z","updated_at":"2025-10-06T08:24:03.047Z","avatar_url":"https://github.com/feiskyer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koder\n\n[![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/) [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![PyPI Downloads](https://static.pepy.tech/badge/koder)](https://pepy.tech/projects/koder)\n\nKoder is an experimental, universal AI coding assistant designed to explore how to build an advanced terminal-based AI coding assistant. Written entirely in Python, it serves as both a functional tool and a learning playground for AI agent development.\n\n**🎯 Project Status**: Under active vibe coding! This is a learning-focused project where we explore building AI coding agents.\n\n## ✨ Features\n\n- **🤖 Universal AI Support**: Works with OpenAI, Anthropic, Google, GitHub Copilot, and 100+ providers via LiteLLM with intelligent auto-detection\n- **💾 Smart Context Management**: Persistent sessions with SQLite storage and automatic token-aware compression (50k token limit)\n- **🔄 Real-time Streaming**: Rich Live displays with intelligent terminal cleanup for responsive user experience\n- **🛠️ Comprehensive Toolset**: file operations, search, shell, task delegation and todos.\n- **🔌 MCP Integration**: Model Context Protocol support with stdio, SSE, and HTTP transports for extensible tool ecosystem\n- **🛡️ Enterprise Security**: SecurityGuard validation, output filtering, permission system, and input sanitization\n- **🎯 Zero Configuration**: Automatic provider detection with fallback defaults\n\n## 🛠️ Installation\n\n### Using uv (Recommended)\n\n```sh\nuv tool install koder\n```\n\n### Using pip\n\n```bash\npip install koder\n```\n\n## ⚡ Quick Start\n\nSimply run Koder with your question or request:\n\n```bash\n# Configure one provider (example: OpenAI)\nexport OPENAI_API_KEY=\"your-openai-api-key\"\nexport KODER_MODEL=\"gpt-4o\"\n\n# Run in interactive mode\nkoder\n\n# Run with prompt\nkoder \"create a Python function to calculate fibonacci numbers\"\n\n# Execute a single prompt in a named session\nkoder -s my-project \"Help me implement a new feature\"\n\n# Use an explicit session flag\nkoder -s my-project \"Your prompt here\"\n```\n\n## 🤖 Configuration\n\n### Environment Variables\n\nKoder automatically detects your AI provider based on available environment variables. The `KODER_MODEL` environment variable controls which model to use:\n\n```bash\n# OpenAI models\nexport KODER_MODEL=\"gpt-4.1\"\nkoder\n\n# Claude models (via LiteLLM)\nexport KODER_MODEL=\"claude-opus-4-20250514\"\nexport ANTHROPIC_API_KEY=your-api-key\nkoder\n\n# Google Gemini models (via LiteLLM)\nexport KODER_MODEL=\"gemini/gemini-2.5-pro\"\nexport GOOGLE_API_KEY=your-api-key\nkoder\n\n# Github Copilot (via LiteLLM)\nexport KODER_MODEL=\"github_copilot/claude-sonnet-4\"\nkoder\n```\n\n### Supported Providers\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eOpenAI\u003c/b\u003e\u003c/summary\u003e\n\n```bash\nexport OPENAI_API_KEY=your-api-key\n\n# Optional: Use custom endpoint\nexport OPENAI_API_BASE=https://your-endpoint.com\n\n# Optional: Specify model (default: gpt-4.1)\nexport KODER_MODEL=\"gpt-4o\"\n\nkoder\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eAnthropic\u003c/b\u003e\u003c/summary\u003e\n\n```bash\nexport KODER_MODEL=\"claude-opus-4-20250514\"\nexport ANTHROPIC_API_KEY=your-api-key\nkoder\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eGoogle Gemini\u003c/b\u003e\u003c/summary\u003e\n\n```bash\nexport KODER_MODEL=\"gemini/gemini-2.5-pro\"\nexport GOOGLE_API_KEY=your-api-key\nkoder\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eGitHub Copilot\u003c/b\u003e\u003c/summary\u003e\n\n```bash\nexport KODER_MODEL=\"github_copilot/claude-sonnet-4\"\nkoder\n```\n\nOn first run you will see a device code in the terminal. Visit \u003chttps://github.com/login/device\u003e and enter the code to authenticate.\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eAzure OpenAI\u003c/b\u003e\u003c/summary\u003e\n\n```bash\nexport KODER_MODEL=azure/gpt-5\nexport AZURE_API_KEY=\"your-azure-api-key\"\nexport ZURE_API_BASE=\"https://your-resource.openai.azure.com\"\nexport AZURE_API_VERSION=\"2025-04-01-preview\"\nkoder\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eOther AI providers (via LiteLLM)\u003c/b\u003e\u003c/summary\u003e\n\n[LiteLLM](https://docs.litellm.ai/docs/providers) supports 100+ providers including Anthropic, Google, Cohere, Hugging Face, and more:\n\n```bash\n# Google Vertex AI\nexport KODER_MODEL=\"vertex_ai/claude-sonnet-4@20250514\"\nexport GOOGLE_APPLICATION_CREDENTIALS=\"your-sa-path.json\"\nexport VERTEXAI_LOCATION=\"\u003cyour-region\u003e\"\nkoder\n\n# Custom OpenAI-compatible endpoints\nexport KODER_MODEL=\"openai/\u003cyour-model-name\u003e\"\nexport OPENAI_API_KEY=\"your-key\"\nexport OPENAI_BASE_URL=\"https://your-custom-endpoint.com/v1\"\nkoder\n```\n\n\u003c/details\u003e\n\n## 🛠️ Development\n\n### Setup Development Environment\n\n```bash\n# Clone the repository\ngit clone https://github.com/feiskyer/koder.git\ncd koder\n\nuv sync\nuv run koder\n```\n\n### Code Quality\n\n```bash\n# Code formatting\nblack .\n\n# Linting\nruff check --fix\n\n# pylint\npylint koder_agent/ --disable=C,R,W --errors-only\n```\n\n## 🔒 Security\n\n- **API Keys**: All API keys are stored in environment variables and never in code.\n- **Local Storage**: Sessions are stored locally in your home directory.\n- **No Telemetry**: Koder doesn't send any data besides API requests to your chosen provider.\n- **Code Execution**: Shell commands require explicit user confirmation.\n\n## 🤝 Contributing\n\nContributions are welcome! Here's how you can help:\n\n1. **Fork** the repository\n2. **Create** a feature branch (`git checkout -b feature/amazing-feature`)\n3. **Commit** your changes (`git commit -m 'Add amazing feature'`)\n4. **Push** to the branch (`git push origin feature/amazing-feature`)\n5. **Open** a Pull Request\n\nPlease read our [Contributing Guidelines](CONTRIBUTING.md) for more details.\n\n## 🌐 Code of Conduct\n\nThis project follows a Code of Conduct based on the Contributor Covenant. Be kind and respectful. If you observe unacceptable behavior, please open an issue.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\nUse of third-party AI services is governed by their respective provider terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeiskyer%2Fkoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeiskyer%2Fkoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeiskyer%2Fkoder/lists"}