|
|
10 сар өмнө | |
|---|---|---|
| cmd | 10 сар өмнө | |
| internal | 10 сар өмнө | |
| .gitignore | 10 сар өмнө | |
| .opencode.json | 10 сар өмнө | |
| LICENSE | 10 сар өмнө | |
| README.md | 10 сар өмнө | |
| go.mod | 10 сар өмнө | |
| go.sum | 10 сар өмнө | |
| main.go | 10 сар өмнө | |
| sqlc.yaml | 11 сар өмнө |
⚠️ Early Development Notice: This project is in early development and is not yet ready for production use. Features may change, break, or be incomplete. Use at your own risk.
A powerful terminal-based AI assistant for developers, providing intelligent coding assistance directly in your terminal.
OpenCode is a Go-based CLI application that brings AI assistance to your terminal. It provides a TUI (Terminal User Interface) for interacting with various AI models to help with coding tasks, debugging, and more.
# Coming soon
go install github.com/kujtimiihoxha/opencode@latest
OpenCode looks for configuration in the following locations:
$HOME/.opencode.json$XDG_CONFIG_HOME/opencode/.opencode.json./.opencode.json (local directory)You can also use environment variables:
ANTHROPIC_API_KEY: For Claude modelsOPENAI_API_KEY: For OpenAI modelsGEMINI_API_KEY: For Google Gemini models# Start OpenCode
opencode
# Start with debug logging
opencode -d
?: Toggle help panelCtrl+C or q: Quit applicationL: View logsBackspace: Go back to previous pageEsc: Close current view/dialog or return to normal modeN: Create new sessionEnter or Space: Select session (in sessions list)i: Enter insert modeEsc: Enter normal modev: Enter visual modeV: Enter visual line modeEnter: Send message (in normal mode)Ctrl+S: Send message (in insert mode)OpenCode is built with a modular architecture:
# Clone the repository
git clone https://github.com/kujtimiihoxha/opencode.git
cd opencode
# Build the diff script first
go run cmd/diff/main.go
# Build
go build -o opencode
# Run
./opencode
OpenCode builds upon the work of several open source projects and developers:
[License information coming soon]
[Contribution guidelines coming soon]