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.1.5.tar.gz (32.4 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.1.5-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for orun_py-1.1.5.tar.gz
Algorithm Hash digest
SHA256 6e78ab00b7948256e678b8a1c45b351d8363ce1beb7d985b3dba9b11ae134ecc
MD5 59fb9a83dd1e9e8078b04c34c965d449
BLAKE2b-256 6567395c6afa75342d1310593ef167a7860396096aeb807601b23e4834dca06a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for orun_py-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6d2d2a30889cbdd5896ec8d5ad35e06c64045ddb2f9083650e40daa83b5cd861
MD5 83564528ecb1f520403808819f9c05dd
BLAKE2b-256 b59300594b71e553a85cff05c1b01ef83842d53cb0e1a1ef934884d2ea752499

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