Skip to main content

Add your description here

Project description

orun-py

A Python CLI Agent wrapper for Ollama. It combines chat capabilities with autonomous tools (file I/O, shell execution, web fetching) and built-in screenshot analysis.

Features

  • Autonomous Agent: Can read/write files, run shell commands, and fetch URLs (with user confirmation).
  • Screenshot Analysis: Auto-detects and attaches recent screenshots from your Pictures folder.
  • Conversation History: SQLite-backed history lets you resume any session.
  • Model Management: Sync models from Ollama and manage shortcuts.

Installation

pip install orun-py

Usage

Agent & Query

Ask a question or give a task. The AI will use tools if necessary.

orun "Why is the sky blue?"
orun "Scan the current directory and list all Python files"
orun "Read src/main.py and explain how it works"

Interactive Chat

Start a continuous session:

orun chat

Start chat with a specific model:

orun chat -m coder

Analyze Screenshots

Attach the most recent screenshot:

orun "What is this error?" -i

Attach the last 3 screenshots:

orun "Compare these images" -i 3x

Model Management

Sync models from Ollama:

orun refresh

List available models:

orun models

Set default active model:

orun set-active llama3.1

Create a shortcut:

orun shortcut llama3.1:8b l3

Conversation History

List recent conversations:

orun history

Continue a conversation by ID:

orun c 1

Continue the last conversation:

orun last

Requirements

  • Python 3.12+
  • Ollama running locally

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

orun_py-1.0.7.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

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

orun_py-1.0.7-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file orun_py-1.0.7.tar.gz.

File metadata

  • Download URL: orun_py-1.0.7.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for orun_py-1.0.7.tar.gz
Algorithm Hash digest
SHA256 aab67ad21adbcab400c56d54d9367ea68c05ba3db33f0b4216743d7eeccc728d
MD5 9bda190850d0e99629563f3da092f27e
BLAKE2b-256 5474dcd13640231a283368d48844625934ae7acdffeb36d4b784245b3e853f4b

See more details on using hashes here.

File details

Details for the file orun_py-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: orun_py-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for orun_py-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bf80935f69bf5abc272d7a1d36a6177b1b7a2964a259f162692958a7f9baac07
MD5 1a371554ee520620243ef54dab49cead
BLAKE2b-256 46ec76fb209af05fc5ffcc49a3a31b22e4711e092e4becc9ecc65b466c45de87

See more details on using hashes here.

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