Agentic coding assistant for Ollama
Project description
OllamaCode
Agentic coding assistant for Ollama with tool use, autonomous mode, and project/user configuration.
Install
From PyPI (after you publish):
pip install ollama-coder
For local development:
pip install -e .
Run
ollama-code
You will be prompted to choose a model on startup. The selected model can be saved as your default.
You can also run:
ollama-coder
Common Commands
/autotoggle autonomous mode/modelslist installed models/modelshow or set the active model/hostshow or set the Ollama host (for remote/cloud)/configshow effective configuration/clearclear conversation history/quitexit
Configuration
User config lives at ~/.ollamacode/settings.json. Example:
{
"model": "llama3:latest",
"max_iterations": 25,
"max_tool_rounds": 8,
"ollama": {
"host": "http://127.0.0.1:11434",
"timeout_sec": 60,
"headers": {},
"api_key": ""
},
"web_search": {
"enabled": false,
"provider": "custom",
"endpoint": "",
"api_key": "",
"timeout_sec": 15,
"max_results": 5
}
}
You can also set OLLAMA_HOST in your environment to point at a remote server. The /host command updates the config and rebuilds the client at runtime.
Requirements
- Ollama server running locally or reachable via
OLLAMA_HOST - Python 3.9+
GitHub
Repository: https://github.com/lalomorales22/ollama-code
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ollama_coder-0.1.0.tar.gz.
File metadata
- Download URL: ollama_coder-0.1.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9448fad383b82c78c20e74ba46a803bfea57090f4c1fb81d19c62e41deb0111
|
|
| MD5 |
c962a2f4fef02fc6267e832b4c2c0189
|
|
| BLAKE2b-256 |
549b4633fd7dd55af815f248646a50d874974b896d36a5eb7f1293e92ab5f17c
|
File details
Details for the file ollama_coder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ollama_coder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aba5eb5fb3a0f64cf08004203c5208031a046ee5aafda21a4617c1557cb48b2c
|
|
| MD5 |
2f10b30607c96ada2f8f7006d6b5db16
|
|
| BLAKE2b-256 |
d295ca058f44477c4e43355c415ec44fee3179d6eeb65469e32cd2c39f33e759
|