Skip to content

jmcdice/opencoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCoder

A Python-based coding assistant inspired by Claude Code that connects to local LLMs

Features

  • 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

Installation

# From source
git clone https://github.com/yourusername/opencoder.git
cd opencoder
pip install -e .

Usage

# Basic usage
opencoder

# Specify working directory
opencoder --dir /path/to/project

# Specify LLM provider
opencoder --provider local --model llama3

# Get help
opencoder --help

Commands

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

Development

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Check code style
flake8

# Type checking
mypy src/

License

MIT License

About

OpenCoder cli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages