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.8.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.8-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: orun_py-1.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 27b9965aefec3d6fc10f2466caed4a9ef7602e3a6064653259ab77869e5c1589
MD5 60c8759ee20bcaf0557c374c4c1d8a74
BLAKE2b-256 3f5b3b0556a2f9f4be89902ebb848d952bfcee64a5179a6925f2418bc2170638

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for orun_py-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2eeea691c4cb1d3e30cf7c1632c8193e55240e07bf807c58e98ae815fb5772ae
MD5 78e4440d1a4295bc777b30186f2aef95
BLAKE2b-256 71912b2d5ba9bac5435de97e8a7644f0a554c0424fda6f6c160787d04fb835c6

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