# PySpur

> A visual playground for building, debugging and deploying agent workflows

- Category: App UIs & Builders / Low-Code & No-Code Builders
- Language: Python & TypeScript
- Licence: Apache-2.0
- Repository: https://github.com/PySpur-Dev/pyspur
- Website: https://pyspur.dev
- Canonical page: https://ai-tldr.dev/tools/pyspur/

## In short

PySpur is a self-hosted visual workspace for the unglamorous part of agent work: seeing what a workflow actually did. It sits in the Low-Code & No-Code Builders category of the App UIs & Builders tools and is open-source, written in Python & TypeScript and licensed Apache-2.0. To get started: install PySpur.

## Overview

PySpur is a self-hosted visual workspace for the unglamorous part of agent work: seeing what a workflow actually did. Its pitch is aimed at three specific frustrations — hours lost to prompt tweaking, no visibility into how steps interact, and debugging by squinting at raw JSON in a terminal — and the product is organised as a loop around them: define test cases, build the agent in Python or through the UI, iterate, deploy.

The canvas is a graph of nodes, and the escape hatch is that every node is a Python file: you add a new one by writing a single file rather than by extending a DSL. Between those two ends sit the features a real workflow needs — loops with memory for iterative tool calling, human-in-the-loop breakpoints that pause a run until someone approves it, structured outputs with a JSON Schema editor, file upload and URL pasting for documents, and multimodal handling of video, images, audio, text and code.

Retrieval is built in as a two-step flow rather than bolted on: create a document collection (parse and chunk), then create a vector index (embed and upsert). Deployed workflows publish as an API in one click and capture execution traces automatically, and evals run the agent against real-world datasets. The project claims support for more than 100 LLM providers, embedders and vector databases, with connectors for Slack, Firecrawl, Google Sheets and GitHub among others.

## What it does

- Visual node graph with node-level debugging, plus automatic execution traces for deployed agents
- Human-in-the-loop breakpoints: persistent workflows that pause at a node and resume when a person approves
- Loops with memory for iterative tool calling, and a UI editor for JSON Schema structured outputs
- Built-in RAG as an explicit two-step flow — parse and chunk into a document collection, then embed and upsert into a vector index
- Multimodal inputs (video, images, audio, text, code) via file upload or pasted URLs
- Python-first extensibility — a new node is a single Python file — with support for 100+ LLM providers, embedders and vector DBs
- One-click deploy as an API, plus evals against real-world datasets

## Getting started

Python 3.11 or higher is required. The pip path is the quickest way to a running instance; the dev-container path is for working on PySpur itself.

1. Install PySpur

```bash
pip install pyspur
```

2. Initialize a project

   This creates a new directory containing a .env file.

```bash
pyspur init my-project
cd my-project
```

3. Start the server

   The app comes up at http://localhost:6080 backed by SQLite. The project recommends configuring a Postgres URL in .env for a more stable experience.

```bash
pyspur serve --sqlite
```

4. Add your provider keys

   Either through the app's API Keys tab, or by editing .env and restarting.

```bash
# App UI:  API Keys tab → add OpenAI / Anthropic / … keys
# Manual:  edit .env (recommended: configure postgres), then
pyspur serve
```

5. Develop against the repo

   For contributing to PySpur itself, the project supports a dev container (Cursor/VS Code, 'Reopen in Container') or a manual docker compose setup. Development on Windows is not supported.

```bash
git clone https://github.com/PySpur-com/pyspur.git
cd pyspur
docker compose -f docker-compose.dev.yml up --build -d
```

## When to use it

- Debug an agent that fails intermittently by stepping through it node by node and inspecting each step's real input and output
- Put a human approval gate in front of a consequential step — a sent email, a posted trade, a published document — without writing the pause/resume plumbing
- Prototype a RAG pipeline visually (parse → chunk → embed → upsert → query) and swap embedders or vector stores without rewriting it
- Publish a working workflow as an API endpoint and keep the traces and evals attached to it after it ships
