Skip to main content

Puras — local skill runner

Run AI skills end to end on your own machine.

License: MIT PyPI Python

Why Puras? · Docs · Getting started · Open-source vs Cloud · Community · License


Puras turns a prompt into a typed, testable, deployable skill — and runs it on your own machine.

Why Puras?

You can already fire a prompt at an LLM SDK — or an agentic one that wires up tool calls for you — and get an answer back. The hard part is everything around it: persisting memory across runs, orchestrating long-running, multi-step pipelines, and surviving the expensive failure — the run that burns through a dozen costly steps and then dies on the last one, throwing away everything before it. Add schema-validating the output and testing the whole thing so it doesn't silently regress, and you're maintaining a pile of glue code and infrastructure per prompt. A skill is that prompt promoted to a real unit:

  • a typed input/output contract — schema-validated in, schema-valid JSON out, every time;
  • memory that persists across runs — a local SQLite store on your laptop, semantic recall on the platform;
  • evals that test the prompt like code, with a CI gate;
  • one loop, two environments — build against a local API and ship the identical bundle with puras deploy; in production, long runs are checkpointed, so a step that fails near the end resumes instead of re-running everything before it.

If all you need is a single completion, reach for the SDK — Puras earns its place the moment a prompt becomes something you run repeatedly, test, and ship.

Getting started

Install the CLI and the offline runner:

pip install puras

A skill is a folder — a prompt and an input/output contract. Create two files. skill.yaml declares the contract as plain JSON Schema — the inputs it takes and the fields it must return:

# triage/skill.yaml
title: Ticket Triage
description: Sort an inbound support message into a category, priority, and summary.
entrypoint: SKILL.md          # markdown entrypoint = agentic; the file is the system prompt

input_schema:
  type: object
  required: [message]
  properties:
    message: { type: string }

output_schema:
  type: object
  properties:
    category: { type: string, enum: [bug, billing, feature_request, other] }
    priority: { type: string, enum: [low, medium, high, urgent] }
    summary:  { type: text }   # `text` = multi-line string

SKILL.md is the system prompt the agent runs with:

<!-- triage/SKILL.md -->
You triage inbound support messages. Read the `message` and respond with its
`category`, `priority`, and a one-line `summary`. Judge priority by user impact,
not by how loud the message is.

Serve it. puras serve exposes the same job API your app will hit in production, backed by the local runner on your own LLM key (if no key is set, the CLI asks for one):

puras serve          # serves ./ → http://127.0.0.1:8787

Now call the skill from your app — point any Puras SDK at the local base URL:

import puras

client = puras.Client(api_key="local", api_base="http://127.0.0.1:8787", skillpack="local")
out = client.run("triage", {"message": "I was charged twice this month and want a refund!"})
print(out["category"], out["priority"])   # → billing high
import { Puras } from "puras";

const puras = new Puras({ apiKey: "local", apiBase: "http://127.0.0.1:8787", skillpack: "local" });
const { category, priority } = await puras.run("triage", { message: "I was charged twice this month and want a refund!" });
console.log(category, priority);   // → billing high

That's the whole loop. When you ship, change the base URL to https://api.puras.co, run puras deploy, and the same app code runs against the managed platform — nothing else changes.

Want to iterate faster? puras run --local triage -i message="…" runs a skill straight from the CLI, puras eval --local gates it on evals, and the examples/ folder has ready-to-run skillpacks.

Open-source vs Cloud

Puras is open-core: the runner — the agent loop and the local tool surface — is MIT-licensed and runs fully offline, forever. The hosted platform at puras.co is how the project is sustainably funded, and it adds the managed surface that can't exist on a single laptop. Premium isn't a crippled core — it's the capabilities that need real infrastructure.

Local runner (this repo, MIT) Puras Cloud (hosted)
Setup & maintenance pip install, you run it Fully managed, nothing to install
LLM key & billing Bring your own key, you pay the provider Managed, usage-based, transparent pricing
Agent loop & local tools ✓ text, bash, file tools, your Python tools, in-process subagents ✓ same loop
Job API for your app ✓ puras serve — the job API on localhost ✓ api.puras.co — managed, scaled, durable
Evals (check/schema/rubric) ✓ per run + offline suites ✓ + suites at scale, CI gating, version diffs
Guardrails (input/tool/output/retrieval rails, fail-closed) — ✓ enforce safety rails at runtime — PII/injection/policy, block/redact/approve
Media (image/video/audio) ✓ generate_* direct to the provider ✓ generation + persistence (bucket-backed)
Web search / fetch / browser ✓ search + fetch ✓ search / fetch / browser screenshots
Shared memory ✓ persistent, local SQLite ✓ persistent, workspace-scoped + semantic (pgvector)
Persistent storage — ✓ bucket-backed drive
Durable resume — ✓ checkpointed, survives worker restarts
Hindsight (retrospectives) — ✓ mines stored run traces for recurring inefficiencies, surfaces fixes
Budgets, tracing, dashboard console events + a token tally ✓ spend budgets, OTel spans, run timelines
Marketplace & sharing — ✓
Support Issues & Discussions priority / SLA

The local runner gives you the free, offline core; the hosted platform adds the managed surface — persistence, scale, durable resume, retrospectives — for when you ship the same bundle unchanged.

Community

Questions, bugs, and skill ideas are welcome in Issues and Discussions. PRs that improve the runner, the docs, or the examples are appreciated.

Working from a checkout instead of PyPI:

pip install -e .             # puras-runner (the runtime)
pip install -e worker/sdk    # the puras CLI + SDK

License

MIT. The hosted platform's server-side code is separate and commercial — this runner, the SDK, and the examples are MIT and yours to use, modify, and self-run.

Metadata

Release files for puras-runner 0.8.0

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

Source distribution (sdist)

Source distribution for puras-runner 0.8.0
File Size Uploaded Provenance Actions
puras_runner-0.8.0.tar.gz 213.9 kB With provenance Details for puras_runner-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for puras-runner 0.8.0
File Interpreter ABI Platform Actions
puras_runner-0.8.0-py3-none-any.whl Python 3 none any Details for puras_runner-0.8.0-py3-none-any.whl

Total release size: 455.3 kB

Release files / puras_runner-0.8.0.tar.gz

Download URL puras_runner-0.8.0.tar.gz
Size 213.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0580dae1d8fb272aaabe6ec38b8c10698da9d6fa6d0a8b39f32e55bb10f24e2f
BLAKE2b-256 checksum
How to use checksums
5bbb9be8c2c5200d694efc5db27abcf690f505e7b7719b3534ed5459aada7634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 20, 2026.

Transparency log

Release files / puras_runner-0.8.0-py3-none-any.whl

Download URL puras_runner-0.8.0-py3-none-any.whl
Size 241.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8253d38315cbc506ef61fab0d446371feecaaa4798d32a5f49a144d4ffbe879
BLAKE2b-256 checksum
How to use checksums
d21fa016a5d690787d2cc4788248f3c3361327a88c034170ed58185890e52f85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 20, 2026.

Transparency log

Security for puras-runner 0.8.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for puras_runner-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 20, 2026.

Transparency log

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.

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