Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Riley-AI

PyPI version Python 3.12+ License: GPL-3.0-only

Current source version: 0.12.0.

A Python assistant with browser chat, a terminal client, and an HTTP API. Choose local Ollama inference or Google's Gemini API. Each browser/API session owns its conversation and settings; CLI history and configuration are stored separately.

Model choices

Use local Ollama or downloaded Hugging Face GGUF models, or explicitly select Google Gemini, Anthropic Claude, OpenAI, or Hugging Face hosted inference. Credentials are scoped to the selected provider; failures never select a replacement service. See model providers for setup and supported controls. Hosted services receive the prompts and context you send.

Quick start

Install Python 3.12+, uv, and a model provider. From a source checkout:

git clone https://codeberg.org/ChocolatePastry/riley-ai.git
cd riley-ai
uv sync --locked
uv run riley --provider ollama --model YOUR_LOCAL_MODEL

Install the model in Ollama before launching. Open http://127.0.0.1:8000 for browser chat, or add --cli for terminal chat. Use GOOGLE_API_KEY and --provider google --model YOUR_GEMINI_MODEL for Gemini. Credentials can be provided without a working keyring. The server does not prompt for a key.

Sessions and streaming

Answers and provider-supplied reasoning are separate fields. Session settings include model selection, generation controls, and reasoning visibility. The API requires a bearer session or browser cookie; create a session before calling chat endpoints. An incomplete or cancelled turn is rolled back.

Model I/O is asynchronous. Each session admits one operation at a time, and the server separately bounds generations and blocking tools. Use one server worker; sessions are in memory and reset on restart. Run locally for trusted users and review the API's deployment limits before choosing a network bind address.

The calculator and web-search pipeline run through bounded tool workers. Web search contacts external sites and requires a cached embedding model. Tool output may be sent to the selected model provider. Local Ollama inference does not make web requests anonymous.

Local coding

Install Git, ripgrep, and Bubblewrap on Linux/WSL2, then launch a project:

uv run riley --cli --workspace /path/to/project --provider ollama --model YOUR_TOOL_MODEL
uv run riley --workspace /path/to/project

Plan mode permits inspection; agent mode can edit text and run offline sandboxed commands. Each network-enabled command needs approval. Coding has a separate persistent task journal and paired browser workspace. Keep it on loopback and review the coding guide for setup, recovery, and execution limits.

Web search is disabled by default. To enable it, install the optional dependencies with uv sync --locked --extra web, cache the embedding model locally, and set RILEY_WEB_ENABLED=1 RILEY_SEARCH_BACKEND=searxng before launch. Start the local SearXNG service separately; Riley does not install or start it. Enabled searches contact the engines configured in SearXNG and result sites.

Conversation and progress

Browser chat uses charcoal surfaces, blue accents, and a bottom composer. Provider reasoning expands while it streams, then collapses into View reasoning as the answer starts. Retained reasoning can be reopened later; collapsing it does not delete it. Terminal chat shows the active model, history setting, and streamed answer; /reasoning displays the last available summary.

The coding workspace has recent tasks, readable tool results, elapsed time, Stop/Resume controls, a Changes drawer, and an Activity log of stages and timing. A live event connection means the server is reachable, not that the model is making progress. The terminal launcher prominently displays the browser address and connection code. Terminal coding shows model/tool stages and command results.

Documentation

Guide Purpose
Setup and chat usage Install, select a provider, use terminal commands, and locate local data.
HTTP API Create sessions, stream replies, and update settings.
Architecture Understand ownership, concurrency, and provider boundaries.
Testing Run deterministic checks and understand their limits.
Contributing Prepare a focused code or documentation change.

License

GPL-3.0-only.

Metadata

Release files for riley-ai 0.13.0.dev6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for riley-ai 0.13.0.dev6
File Size Uploaded Provenance Actions
riley_ai-0.13.0.dev6.tar.gz 317.9 kB Without provenance Details for riley_ai-0.13.0.dev6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for riley-ai 0.13.0.dev6
File Interpreter ABI Platform Actions
riley_ai-0.13.0.dev6-py3-none-any.whl Python 3 none any Details for riley_ai-0.13.0.dev6-py3-none-any.whl

Total release size: 547.9 kB

Release files / riley_ai-0.13.0.dev6.tar.gz

Download URL riley_ai-0.13.0.dev6.tar.gz
Size 317.9 kB
Tags Source
SHA-256 checksum
How to use checksums
98a8b981ba3abb3dab49af67d67b9c94bc97a8cf33e2098ae94f149387e68a3b
BLAKE2b-256 checksum
How to use checksums
eecb295856c005f6c3470ed8c54e448ac20aa7402d1a60835caeb48f09809856
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Release files / riley_ai-0.13.0.dev6-py3-none-any.whl

Download URL riley_ai-0.13.0.dev6-py3-none-any.whl
Size 230.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edc44d83c224b98f8b4e4a6d2bec149431b3bc8ded9321a17ce876b8dba5e0e3
BLAKE2b-256 checksum
How to use checksums
ce6b5f314ba02a9c0cec461dc7eaa16cd870eacdd5ce0a7991325624b4a78d25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for riley-ai 0.13.0.dev6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page