koder 0.3.0__tar.gz → 0.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. {koder-0.3.0 → koder-0.3.2}/.claude/settings.local.json +4 -1
  2. koder-0.3.2/.vscode/koder.json +10 -0
  3. koder-0.3.2/CLAUDE.md +1 -0
  4. koder-0.3.2/CONTRIBUTING.md +165 -0
  5. koder-0.3.2/KODER.md +111 -0
  6. koder-0.3.2/PKG-INFO +254 -0
  7. koder-0.3.2/README.md +221 -0
  8. {koder-0.3.0 → koder-0.3.2}/koder_agent/__init__.py +1 -1
  9. {koder-0.3.0 → koder-0.3.2}/koder_agent/agentic/__init__.py +3 -0
  10. koder-0.3.2/koder_agent/agentic/approval_hooks.py +66 -0
  11. koder-0.3.2/koder_agent/cli.py +236 -0
  12. {koder-0.3.0 → koder-0.3.2}/koder_agent/core/commands.py +75 -16
  13. {koder-0.3.0 → koder-0.3.2}/koder_agent/core/interactive.py +4 -4
  14. koder-0.3.2/koder_agent/core/permissions.py +300 -0
  15. {koder-0.3.0 → koder-0.3.2}/koder_agent/core/scheduler.py +92 -37
  16. {koder-0.3.0 → koder-0.3.2}/koder_agent/tools/engine.py +13 -2
  17. koder-0.3.2/koder_agent/utils/__init__.py +17 -0
  18. koder-0.3.2/koder_agent/utils/client.py +55 -0
  19. {koder-0.3.0 → koder-0.3.2}/koder_agent/utils/prompts.py +1 -1
  20. koder-0.3.2/koder_agent/utils/sessions.py +81 -0
  21. {koder-0.3.0 → koder-0.3.2}/pyproject.toml +33 -19
  22. {koder-0.3.0 → koder-0.3.2}/uv.lock +1103 -681
  23. koder-0.3.0/CLAUDE.md +0 -79
  24. koder-0.3.0/KODER.md +0 -1
  25. koder-0.3.0/PKG-INFO +0 -226
  26. koder-0.3.0/README.md +0 -205
  27. koder-0.3.0/koder_agent/cli.py +0 -224
  28. koder-0.3.0/koder_agent/utils/__init__.py +0 -7
  29. koder-0.3.0/koder_agent/utils/client.py +0 -82
  30. {koder-0.3.0 → koder-0.3.2}/.github/dependabot.yml +0 -0
  31. {koder-0.3.0 → koder-0.3.2}/.gitignore +0 -0
  32. {koder-0.3.0 → koder-0.3.2}/LICENSE +0 -0
  33. {koder-0.3.0 → koder-0.3.2}/koder_agent/agentic/agent.py +0 -0
  34. {koder-0.3.0 → koder-0.3.2}/koder_agent/agentic/hooks.py +0 -0
  35. {koder-0.3.0 → koder-0.3.2}/koder_agent/core/__init__.py +0 -0
  36. {koder-0.3.0 → koder-0.3.2}/koder_agent/core/context.py +0 -0
  37. {koder-0.3.0 → koder-0.3.2}/koder_agent/core/security.py +0 -0
  38. {koder-0.3.0 → koder-0.3.2}/koder_agent/core/streaming_display.py +0 -0
  39. {koder-0.3.0 → koder-0.3.2}/koder_agent/mcp/__init__.py +0 -0
  40. {koder-0.3.0 → koder-0.3.2}/koder_agent/mcp/cli_handler.py +0 -0
  41. {koder-0.3.0 → koder-0.3.2}/koder_agent/mcp/server_config.py +0 -0
  42. {koder-0.3.0 → koder-0.3.2}/koder_agent/mcp/server_factory.py +0 -0
  43. {koder-0.3.0 → koder-0.3.2}/koder_agent/mcp/server_manager.py +0 -0
  44. {koder-0.3.0 → koder-0.3.2}/koder_agent/tools/__init__.py +0 -0
  45. {koder-0.3.0 → koder-0.3.2}/koder_agent/tools/file_ops.py +0 -0
  46. {koder-0.3.0 → koder-0.3.2}/koder_agent/tools/search_ops.py +0 -0
  47. {koder-0.3.0 → koder-0.3.2}/koder_agent/tools/shell_ops.py +0 -0
  48. {koder-0.3.0 → koder-0.3.2}/koder_agent/tools/task_ops.py +0 -0
  49. {koder-0.3.0 → koder-0.3.2}/koder_agent/tools/todo_ops.py +0 -0
  50. {koder-0.3.0 → koder-0.3.2}/koder_agent/tools/web_ops.py +0 -0
  51. {koder-0.3.0 → koder-0.3.2}/koder_agent/utils/queue.py +0 -0
@@ -10,7 +10,10 @@
10
10
  "Bash(python:*)",
11
11
  "Bash(ruff check:*)",
12
12
  "Bash(black:*)",
13
- "WebFetch(domain:python-prompt-toolkit.readthedocs.io)"
13
+ "WebFetch(domain:python-prompt-toolkit.readthedocs.io)",
14
+ "WebFetch(domain:docs.anthropic.com)",
15
+ "mcp__context7__resolve-library-id",
16
+ "mcp__context7__get-library-docs"
14
17
  ],
15
18
  "deny": []
16
19
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "permissions": {
3
+ "tools": {
4
+ "list_directory": "always_allow",
5
+ "read_file": "always_allow",
6
+ "glob_search": "always_allow"
7
+ },
8
+ "mcp_tools": {}
9
+ }
10
+ }
koder-0.3.2/CLAUDE.md ADDED
@@ -0,0 +1 @@
1
+ KODER.md
@@ -0,0 +1,165 @@
1
+ # Contributing to Koder
2
+
3
+ Welcome to Koder! We're excited that you want to contribute to this experimental AI coding assistant. This project is a learning-focused exploration of building advanced terminal-based AI agents, and we welcome contributions of all kinds.
4
+
5
+ ## Project Philosophy
6
+
7
+ Koder is designed as both a functional tool and a learning playground for AI agent development. We value:
8
+
9
+ - **Experimentation**: Trying new approaches and learning from them
10
+ - **Clean Architecture**: Well-structured, maintainable Python code
11
+ - **Security First**: Robust validation and permission systems
12
+ - **Universal Compatibility**: Supporting multiple AI providers and use cases
13
+ - **Community Learning**: Sharing knowledge and growing together
14
+
15
+ ## Getting Started
16
+
17
+ ### Prerequisites
18
+
19
+ - Python 3.9 or higher
20
+ - [uv](https://docs.astral.sh/uv/) package manager (recommended)
21
+ - Git for version control
22
+ - API key for at least one AI provider (OpenAI, Anthropic, Google, etc.)
23
+
24
+ ### Development Setup
25
+
26
+ 1. **Fork and Clone**
27
+
28
+ ```bash
29
+ git clone https://github.com/feiskyer/koder.git
30
+ cd koder
31
+ ```
32
+
33
+ 2. **Set Up Environment**
34
+
35
+ ```bash
36
+ # Install dependencies
37
+ uv sync
38
+
39
+ # Configure AI provider (example: OpenAI)
40
+ export OPENAI_API_KEY="your-api-key"
41
+ export KODER_MODEL="gpt-4o"
42
+ ```
43
+
44
+ 3. **Verify Installation**
45
+
46
+ ```bash
47
+ # Test the CLI
48
+ uv run koder "Hello, Koder!"
49
+
50
+ # Run in interactive mode
51
+ uv run koder
52
+ ```
53
+
54
+ 4. **Run Development Commands**
55
+
56
+ ```bash
57
+ # Code formatting
58
+ black .
59
+
60
+ # Linting and fixes
61
+ ruff check --fix
62
+
63
+ # Error-only pylint check
64
+ pylint koder_agent/ --disable=C,R,W --errors-only
65
+ ```
66
+
67
+ ## Development Guidelines
68
+
69
+ ### Code Style
70
+
71
+ We use automated tooling to maintain consistent code quality:
72
+
73
+ - **Black**: Code formatting (`black .`)
74
+ - **Ruff**: Linting and import sorting (`ruff check --fix`)
75
+ - **Pylint**: Additional error checking (`pylint koder_agent/ --disable=C,R,W --errors-only`)
76
+
77
+ ### Code Quality Standards
78
+
79
+ 1. **Type Hints**: Use type annotations for function parameters and return values
80
+ 2. **Docstrings**: Document all public functions and classes
81
+ 3. **Error Handling**: Implement proper exception handling with informative messages
82
+ 4. **Security**: Follow SecurityGuard patterns for input validation
83
+ 5. **Testing**: Add tests for new features (when applicable)
84
+
85
+ ### Architecture Principles
86
+
87
+ 1. **Separation of Concerns**: Keep tools, core logic, and UI separate
88
+ 2. **Plugin Architecture**: New tools should extend the tool engine
89
+ 3. **Security by Default**: All user inputs must be validated
90
+ 4. **Provider Agnostic**: Support multiple AI providers through abstraction
91
+ 5. **Rich UI**: Use Rich library for terminal interfaces
92
+
93
+ ## Making Contributions
94
+
95
+ 1. **Create an Issue** (for significant changes)
96
+
97
+ - Describe the problem or feature request
98
+ - Discuss the approach with maintainers
99
+ - Get feedback before implementation
100
+
101
+ 2. **Fork and Branch**
102
+
103
+ ```bash
104
+ git checkout -b feature/your-feature-name
105
+ # or
106
+ git checkout -b fix/issue-description
107
+ ```
108
+
109
+ 3. **Develop and Test**
110
+
111
+ - Write clean, documented code
112
+ - Run code quality checks
113
+ - Test your changes thoroughly
114
+ - Update documentation if needed
115
+
116
+ 4. **Commit and Push**
117
+
118
+ ```bash
119
+ # Make atomic, descriptive commits
120
+ git add .
121
+ git commit -m "feat: add new tool for X functionality"
122
+
123
+ # Push to your fork
124
+ git push origin feature/your-feature-name
125
+ ```
126
+
127
+ 5. **Create Pull Request**
128
+ - Use a clear, descriptive title
129
+ - Reference related issues
130
+ - Describe what you changed and why
131
+ - Include testing information
132
+
133
+ ## Security Considerations
134
+
135
+ ### Security Requirements
136
+
137
+ 1. **Input Validation**: All user inputs must be validated
138
+ 2. **Command Safety**: Shell commands require SecurityGuard approval
139
+ 3. **API Key Protection**: Never log or expose API keys
140
+ 4. **Output Filtering**: Filter sensitive information from outputs
141
+ 5. **Permission Checks**: Tool execution must check permissions
142
+
143
+ ### Reporting Security Issues
144
+
145
+ For security vulnerabilities:
146
+
147
+ 1. **DO NOT** create public issues
148
+ 2. Email maintainers privately
149
+ 3. Provide detailed reproduction steps
150
+ 4. Allow time for responsible disclosure
151
+
152
+ ## Community Guidelines
153
+
154
+ ### Code of Conduct
155
+
156
+ - **Be Respectful**: Treat all community members with respect
157
+ - **Be Inclusive**: Welcome contributors of all backgrounds and skill levels
158
+ - **Be Collaborative**: Work together and help each other learn
159
+ - **Be Patient**: Remember that everyone is learning
160
+
161
+ ### Getting Help
162
+
163
+ - **GitHub Issues**: For bugs and feature requests
164
+ - **GitHub Discussions**: For questions and general discussion
165
+ - **Code Reviews**: Ask for feedback on your contributions
koder-0.3.2/KODER.md ADDED
@@ -0,0 +1,111 @@
1
+ # CLAUDE.md
2
+
3
+ This file provides guidance to KODER and Agentic AI when working with code in this repository.
4
+
5
+ ## Commands
6
+
7
+ ### Development Setup
8
+
9
+ ```bash
10
+ # Install dependencies
11
+ uv sync
12
+
13
+ # Upgrade dependencies
14
+ uv sync --upgrade
15
+
16
+ # Run the CLI in interactive mode
17
+ uv run koder
18
+
19
+ # Run with a single prompt
20
+ uv run koder "Help me implement a new feature"
21
+
22
+ # Run with specific session
23
+ uv run koder --session my-session "Your prompt"
24
+
25
+ # Enable streaming mode (default)
26
+ uv run koder --stream "Your prompt"
27
+
28
+ # Disable streaming mode
29
+ uv run koder --no-stream "Your prompt"
30
+
31
+ # Resume a previous session
32
+ uv run koder --resume
33
+
34
+ # MCP server management
35
+ uv run koder mcp list
36
+ uv run koder mcp add myserver command arg1 arg2
37
+ uv run koder mcp remove myserver
38
+ ```
39
+
40
+ ### Development Commands
41
+
42
+ ```bash
43
+ # Code formatting
44
+ black .
45
+
46
+ # Linting
47
+ ruff check --fix
48
+
49
+ # pylint
50
+ pylint koder_agent/ --disable=C,R,W --errors-only
51
+ ```
52
+
53
+ ## Architecture
54
+
55
+ ### Core Components
56
+
57
+ **Agent Scheduler (`koder_agent/core/scheduler.py`)**: Central orchestrator that manages agent execution, handles streaming with Rich Live displays, and coordinates context management. Uses semaphores for concurrency control and includes intelligent cleanup of streaming content.
58
+
59
+ **Context Manager (`koder_agent/core/context.py`)**: Manages conversation history with SQLite storage at `~/.koder/koder.db`, implements token-aware compression (50k token limit using tiktoken), and handles session management across multiple projects.
60
+
61
+ **Tool Engine (`koder_agent/tools/engine.py`)**: Registers and executes tools with Pydantic validation, filters sensitive information from outputs, enforces security checks via SecurityGuard, and maintains an allowed tools list.
62
+
63
+ **Permission Manager (`koder_agent/core/permissions.py`)**: Handles tool execution permissions and approval workflows, supporting both automatic and interactive approval modes.
64
+
65
+ **MCP Server Manager (`koder_agent/mcp/server_manager.py`)**: Manages Model Context Protocol (MCP) server configurations stored in SQLite, supporting stdio, SSE, and HTTP transports.
66
+
67
+ ### Agent System
68
+
69
+ The project uses the `openai-agents` library with multi-provider support:
70
+
71
+ - **Main Agent**: `create_dev_agent()` - Primary development agent with full tool access and MCP integration
72
+ - **Model Selection**: Automatically chooses appropriate model via `get_model_name()` supporting OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, GitHub Copilot, and 100+ providers via LiteLLM
73
+ - **Provider Detection**: Auto-detects provider based on environment variables with fallback defaults
74
+
75
+ ### Tool Categories
76
+
77
+ 1. **File Operations**: `read_file`, `write_file`, `append_file`, `list_directory`
78
+ 2. **Search Operations**: `glob_search`, `grep_search`
79
+ 3. **Shell Operations**: `run_shell`, `git_command`
80
+ 4. **Web Operations**: `web_search`, `web_fetch`
81
+ 5. **Task Management**: `todo_read`, `todo_write`, `task_delegate`
82
+
83
+ ### Key Features
84
+
85
+ - **Streaming Support**: Real-time output with Rich Live displays and intelligent terminal cleanup
86
+ - **Context Persistence**: Conversation history across sessions with automatic compression
87
+ - **Tool Validation**: Pydantic schemas with security checks and output filtering
88
+ - **Interactive CLI**: Rich-formatted panels, prompts, and session management
89
+ - **MCP Integration**: Support for Model Context Protocol servers with multiple transport types
90
+ - **Multi-Provider AI**: Universal provider support with intelligent auto-detection
91
+ - **Session Management**: Per-project session isolation with resume capability
92
+
93
+ ### Configuration
94
+
95
+ - **Context Loading**: The CLI looks for `KODER.md` in the working directory to load project-specific context
96
+ - **Database**: SQLite database at `~/.koder/koder.db` stores conversation history and MCP server configs
97
+ - **AI Provider Setup**: Set API credentials via environment variables (see README.md for provider-specific setup)
98
+ - **Model Selection**: Use `KODER_MODEL` environment variable to specify which model to use across providers
99
+
100
+ ### Security Features
101
+
102
+ - **Command Validation**: SecurityGuard validates shell commands before execution
103
+ - **Output Filtering**: Automatic filtering of API keys, tokens, and sensitive information
104
+ - **Permission System**: Tool execution requires permission checks, with approval hooks for interactive mode
105
+ - **Input Sanitization**: Validation of all tool inputs using Pydantic schemas
106
+
107
+ ### Entry Points
108
+
109
+ - **CLI Entry**: `koder_agent.cli:run` - Main CLI interface with argument parsing and session management
110
+ - **Interactive Mode**: `koder_agent/core/interactive.py` - Rich-based interactive prompt with command completion
111
+ - **Slash Commands**: `koder_agent/core/commands.py` - Built-in commands for session management and utilities
koder-0.3.2/PKG-INFO ADDED
@@ -0,0 +1,254 @@
1
+ Metadata-Version: 2.4
2
+ Name: koder
3
+ Version: 0.3.2
4
+ Summary: An intuitive AI coding assistant and interactive CLI tool that boosts developer productivity with intelligent automation and context-aware support.
5
+ Project-URL: Homepage, https://github.com/feiskyer/koder
6
+ Project-URL: Repository, https://github.com/feiskyer/koder
7
+ Author: Pengfei Ni
8
+ License-File: LICENSE
9
+ Keywords: agent,agentic,ai,copilot,litellm,openai,vibe coding
10
+ Requires-Python: >=3.9
11
+ Requires-Dist: aiosqlite>=0.19.0
12
+ Requires-Dist: apscheduler>=3.11.0
13
+ Requires-Dist: backoff>=2.2.1
14
+ Requires-Dist: beautifulsoup4>=4.12.0
15
+ Requires-Dist: cryptography>=45.0.6
16
+ Requires-Dist: fastapi-sso>=0.18.0
17
+ Requires-Dist: fastapi>=0.116.1
18
+ Requires-Dist: google-cloud-aiplatform>=1.106.0
19
+ Requires-Dist: httpx[socks]>=0.25.0
20
+ Requires-Dist: openai-agents[litellm]>=0.2.4
21
+ Requires-Dist: openai==1.98.0
22
+ Requires-Dist: orjson>=3.11.2
23
+ Requires-Dist: prompt-toolkit>=3.0.51
24
+ Requires-Dist: pydantic>=2.0.0
25
+ Requires-Dist: pyjwt>=2.10.1
26
+ Requires-Dist: pynacl>=1.5.0
27
+ Requires-Dist: python-multipart>=0.0.20
28
+ Requires-Dist: requests>=2.31.0
29
+ Requires-Dist: rich>=14.1.0
30
+ Requires-Dist: tiktoken>=0.5.0
31
+ Requires-Dist: websockets>=15.0.1
32
+ Description-Content-Type: text/markdown
33
+
34
+ # Koder
35
+
36
+ [![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)
37
+
38
+ Koder 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.
39
+
40
+ **🎯 Project Status**: Under active vibe coding! This is a learning-focused project where we explore building AI coding agents.
41
+
42
+ ## ✨ Features
43
+
44
+ - **🤖 Universal AI Support**: Works with OpenAI, Anthropic, Google, GitHub Copilot, and 100+ providers via LiteLLM with intelligent auto-detection
45
+ - **💾 Smart Context Management**: Persistent sessions with SQLite storage and automatic token-aware compression (50k token limit)
46
+ - **🔄 Real-time Streaming**: Rich Live displays with intelligent terminal cleanup for responsive user experience
47
+ - **🛠️ Comprehensive Toolset**: file operations, search, shell, task delegation and todos.
48
+ - **🔌 MCP Integration**: Model Context Protocol support with stdio, SSE, and HTTP transports for extensible tool ecosystem
49
+ - **🛡️ Enterprise Security**: SecurityGuard validation, output filtering, permission system, and input sanitization
50
+ - **🎯 Zero Configuration**: Automatic provider detection with fallback defaults
51
+
52
+ ## 🛠️ Installation
53
+
54
+ ### Using uv (Recommended)
55
+
56
+ ```sh
57
+ uv tool install koder
58
+ ```
59
+
60
+ ### Using pip
61
+
62
+ ```bash
63
+ pip install koder
64
+ ```
65
+
66
+ ## ⚡ Quick Start
67
+
68
+ Simply run Koder with your question or request:
69
+
70
+ ```bash
71
+ # Configure one provider (example: OpenAI)
72
+ export OPENAI_API_KEY="your-openai-api-key"
73
+ export KODER_MODEL="gpt-4o"
74
+
75
+ # Run in interactive mode
76
+ koder
77
+
78
+ # Run with prompt
79
+ koder "create a Python function to calculate fibonacci numbers"
80
+
81
+ # Execute a single prompt in a named session
82
+ koder -s my-project "Help me implement a new feature"
83
+
84
+ # Use an explicit session flag
85
+ koder -s my-project "Your prompt here"
86
+ ```
87
+
88
+ ## 🤖 Configuration
89
+
90
+ ### Environment Variables
91
+
92
+ Koder automatically detects your AI provider based on available environment variables. The `KODER_MODEL` environment variable controls which model to use:
93
+
94
+ ```bash
95
+ # OpenAI models
96
+ export KODER_MODEL="gpt-4.1"
97
+ koder
98
+
99
+ # Claude models (via LiteLLM)
100
+ export KODER_MODEL="claude-opus-4-20250514"
101
+ export ANTHROPIC_API_KEY=your-api-key
102
+ koder
103
+
104
+ # Google Gemini models (via LiteLLM)
105
+ export KODER_MODEL="gemini/gemini-2.5-pro"
106
+ export GOOGLE_API_KEY=your-api-key
107
+ koder
108
+
109
+ # Github Copilot (via LiteLLM)
110
+ export KODER_MODEL="github_copilot/claude-sonnet-4"
111
+ koder
112
+ ```
113
+
114
+ ### Supported Providers
115
+
116
+ <details>
117
+ <summary><b>OpenAI</b></summary>
118
+
119
+ ```bash
120
+ export OPENAI_API_KEY=your-api-key
121
+
122
+ # Optional: Use custom endpoint
123
+ export OPENAI_API_BASE=https://your-endpoint.com
124
+
125
+ # Optional: Specify model (default: gpt-4.1)
126
+ export KODER_MODEL="gpt-4o"
127
+
128
+ koder
129
+ ```
130
+
131
+ </details>
132
+
133
+ <details>
134
+ <summary><b>Anthropic</b></summary>
135
+
136
+ ```bash
137
+ export KODER_MODEL="claude-opus-4-20250514"
138
+ export ANTHROPIC_API_KEY=your-api-key
139
+ koder
140
+ ```
141
+
142
+ </details>
143
+
144
+ <details>
145
+ <summary><b>Google Gemini</b></summary>
146
+
147
+ ```bash
148
+ export KODER_MODEL="gemini/gemini-2.5-pro"
149
+ export GOOGLE_API_KEY=your-api-key
150
+ koder
151
+ ```
152
+
153
+ </details>
154
+
155
+ <details>
156
+ <summary><b>GitHub Copilot</b></summary>
157
+
158
+ ```bash
159
+ export KODER_MODEL="github_copilot/claude-sonnet-4"
160
+ koder
161
+ ```
162
+
163
+ On first run you will see a device code in the terminal. Visit <https://github.com/login/device> and enter the code to authenticate.
164
+
165
+ </details>
166
+
167
+ <details>
168
+ <summary><b>Azure OpenAI</b></summary>
169
+
170
+ ```bash
171
+ export KODER_MODEL=azure/gpt-5
172
+ export AZURE_API_KEY="your-azure-api-key"
173
+ export ZURE_API_BASE="https://your-resource.openai.azure.com"
174
+ export AZURE_API_VERSION="2025-04-01-preview"
175
+ koder
176
+ ```
177
+
178
+ </details>
179
+
180
+ <details>
181
+ <summary><b>Other AI providers (via LiteLLM)</b></summary>
182
+
183
+ [LiteLLM](https://docs.litellm.ai/docs/providers) supports 100+ providers including Anthropic, Google, Cohere, Hugging Face, and more:
184
+
185
+ ```bash
186
+ # Google Vertex AI
187
+ export KODER_MODEL="vertex_ai/claude-sonnet-4@20250514"
188
+ export GOOGLE_APPLICATION_CREDENTIALS="your-sa-path.json"
189
+ export VERTEXAI_LOCATION="<your-region>"
190
+ koder
191
+
192
+ # Custom OpenAI-compatible endpoints
193
+ export KODER_MODEL="openai/<your-model-name>"
194
+ export OPENAI_API_KEY="your-key"
195
+ export OPENAI_BASE_URL="https://your-custom-endpoint.com/v1"
196
+ koder
197
+ ```
198
+
199
+ </details>
200
+
201
+ ## 🛠️ Development
202
+
203
+ ### Setup Development Environment
204
+
205
+ ```bash
206
+ # Clone the repository
207
+ git clone https://github.com/feiskyer/koder.git
208
+ cd koder
209
+
210
+ uv sync
211
+ uv run koder
212
+ ```
213
+
214
+ ### Code Quality
215
+
216
+ ```bash
217
+ # Code formatting
218
+ black .
219
+
220
+ # Linting
221
+ ruff check --fix
222
+
223
+ # pylint
224
+ pylint koder_agent/ --disable=C,R,W --errors-only
225
+ ```
226
+
227
+ ## 🔒 Security
228
+
229
+ - **API Keys**: All API keys are stored in environment variables and never in code.
230
+ - **Local Storage**: Sessions are stored locally in your home directory.
231
+ - **No Telemetry**: Koder doesn't send any data besides API requests to your chosen provider.
232
+ - **Code Execution**: Shell commands require explicit user confirmation.
233
+
234
+ ## 🤝 Contributing
235
+
236
+ Contributions are welcome! Here's how you can help:
237
+
238
+ 1. **Fork** the repository
239
+ 2. **Create** a feature branch (`git checkout -b feature/amazing-feature`)
240
+ 3. **Commit** your changes (`git commit -m 'Add amazing feature'`)
241
+ 4. **Push** to the branch (`git push origin feature/amazing-feature`)
242
+ 5. **Open** a Pull Request
243
+
244
+ Please read our [Contributing Guidelines](CONTRIBUTING.md) for more details.
245
+
246
+ ## 🌐 Code of Conduct
247
+
248
+ This project follows a Code of Conduct based on the Contributor Covenant. Be kind and respectful. If you observe unacceptable behavior, please open an issue.
249
+
250
+ ## 📄 License
251
+
252
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
253
+
254
+ Use of third-party AI services is governed by their respective provider terms.