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), built-in screenshot analysis, and 200+ prompt/strategy templates.

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.
  • Prompt Templates: 200+ pre-defined templates for coding, analysis, writing, and more.
  • Strategy Templates: Chain-of-Thought, Tree-of-Thought, and other reasoning strategies.
  • 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

Prompt & Strategy Templates

Use a prompt template:

orun "Review this code" -p review_code
orun "Analyze this paper" -p analyze_paper

Use a reasoning strategy:

orun "Explain step by step" -s cot
orun "Explore multiple approaches" -s tot

Combine prompt and strategy:

orun "Debug this issue" -p analyze_incident -s cod

List available templates:

orun prompts      # List all prompt templates
orun strategies   # List all strategy templates

In chat mode, apply templates dynamically:

/prompt analyze_paper
/strategy cot

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.2.0.tar.gz (423.3 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.2.0-py3-none-any.whl (533.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for orun_py-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6b8ac7d42a091d17a4c976a508e1a3e7a8b7df6662d0217453e906ea691ee500
MD5 0b815cda7dae37d056f3cb09a210151a
BLAKE2b-256 b6b8016a5367294aec015e5c2a5e09f96df706fef1fb1a08697c1c8e61244701

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for orun_py-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea589a8090a1d8a9e8ca06d647508c79e1e32ddbfe535ae51506f96c0e85aede
MD5 a02537f70f96ab5af55245ce55feaddf
BLAKE2b-256 00aac8549954cd257e1edf0ead0c5327a36f8eb55fabc4d08107097ff10d98b3

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