Skip to main content

Agentic coding assistant for Ollama

Project description

OllamaCode

Screenshot 2026-01-03 at 10 25 32 AM

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-coder

You will be prompted to choose a model on startup. The selected model can be saved as your default.

Common Commands

  • /auto toggle autonomous mode
  • /models list installed models
  • /model show or set the active model
  • /host show or set the Ollama host (for remote/cloud)
  • /config show effective configuration
  • /clear clear conversation history
  • /quit exit

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

Publish to PyPI

Manual publish:

python -m build
python -m twine upload dist/*

Auto Publish (GitHub Actions)

This repo includes a GitHub Actions workflow that publishes to PyPI on tags.

Steps:

  1. Bump the version in pyproject.toml and ollama_code/__init__.py
  2. Commit the change
  3. Tag and push:
    git tag v0.1.1
    git push origin v0.1.1
    

Trusted Publisher setup (one-time):

  • In PyPI, add a Trusted Publisher for this repo.
  • Workflow name (file): publish.yml (or .github/workflows/publish.yml)
  • Environment name: leave blank (unless you add one)

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

ollama_coder-0.1.2.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ollama_coder-0.1.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file ollama_coder-0.1.2.tar.gz.

File metadata

  • Download URL: ollama_coder-0.1.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ollama_coder-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3558aa64d161fa58a13ac3440181dba1512041c7f6623e436da2047a91ff0849
MD5 007f6fef8c8cf1e31ebd2cacb3dcd5ac
BLAKE2b-256 0c5ed51d3f8b614890c9317a1a6b2c75e37da129b886b3c7253df04a9a4ef10b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ollama_coder-0.1.2.tar.gz:

Publisher: publish.yml on lalomorales22/ollama-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ollama_coder-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ollama_coder-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ollama_coder-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 66a78eec240793aec473d95eae7ca7ac05325ef0b139a35edeb493feb0196b7b
MD5 117d48f364fc928dcdbb3fc6f0ff5a48
BLAKE2b-256 05be5c9be72a15f800c2d65ef8586a6552d83453d9e010e4731f898e2244e396

See more details on using hashes here.

Provenance

The following attestation bundles were made for ollama_coder-0.1.2-py3-none-any.whl:

Publisher: publish.yml on lalomorales22/ollama-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page