A Python-based coding assistant inspired by Claude Code that connects to local LLMs
- Connect to local LLMs (Ollama, etc.) or cloud-based models like OpenAI
- Interactive CLI with rich formatting
- Git integration
- Editor integration
- Modular plugin system for extensibility
# From source
git clone https://github.com/yourusername/opencoder.git
cd opencoder
pip install -e .
# Basic usage
opencoder
# Specify working directory
opencoder --dir /path/to/project
# Specify LLM provider
opencoder --provider local --model llama3
# Get help
opencoder --help
When running the interactive shell, you can use the following commands:
/help
: Show available commands/config
: View or modify configuration/files [pattern]
: List project files/read <file>
: Display file contents/edit <file>
: Edit a file/run <command>
: Run a shell command/git <subcommand>
: Run a git command/model <model>
: Switch model/provider <provider>
: Switch LLM provider/exit
or/quit
: Exit the assistant
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Check code style
flake8
# Type checking
mypy src/
MIT License