Metadata-Version: 2.1
Name: 23step
Version: 0.3.1
Summary: Open-source local replay server, CLI capture daemon, and OpenTelemetry hooks for AI coding agents
Home-page: https://open.23step.com
Author: 23step
Author-email: hello@23step.com
License: Apache-2.0
Project-URL: Homepage, https://open.23step.com
Project-URL: Repository, https://github.com/23Step/23step
Project-URL: Releases, https://github.com/23Step/23step/releases
Project-URL: Issues, https://github.com/23Step/23step/issues
Keywords: ai,agents,replay,opentelemetry,claude,cursor,codex,gemini,cli
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Go
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Debuggers
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# 23step

[![CI](https://github.com/23Step/23step/actions/workflows/ci.yml/badge.svg)](https://github.com/23Step/23step/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
[![Site](https://img.shields.io/badge/site-open.23step.com-111827.svg)](https://open.23step.com)

**Open-source local replay server, CLI, Desktop Overlay, and OpenTelemetry hooks for AI coding agents.**

Record every prompt, thinking trace, tool call, shell command, and browser click/screenshot into a single visual timeline — **100% locally on your machine with zero cloud or account required**.

Works with **Claude Code**, **Cursor**, **OpenAI Codex**, **Gemini CLI**, **Antigravity**, **Cline**, **Grok Bot**, and any **Vertex AI / `google-genai` / OpenTelemetry GenAI / OpenLLMetry / OpenInference / Vercel AI SDK** agent.

---

## Why 23step

- **Single-Binary Local Replay Server (`23step serve`)**: Pure-Go SQLite (`~/.local/share/23step/local/index.db`) + local PNGs (`0700`/`0600`), standard OTLP `/v1/traces` & `/v1/logs`, embedded dark-mode replay UI with click reticles + DOM bounding boxes, live SSE, mid-run steering pins, secret/PII redaction, and Markdown/JSON export — ~15 MB static binary, zero external databases.
- **Universal GenAI / Vertex AI OTLP Mapper (`cli/pkg/otel`)**: Decodes protobuf and standard hex-encoded OTLP/JSON and fans out multi-part LLM spans into ordered `user_prompt` → `thought` → `tool_call` → `assistant_response` timelines without double-counting tokens.
- **Zero-`curl | sh` Coding-Agent Hooks**: Lifecycle hooks for Claude Code, Cursor, Codex, Gemini CLI, Antigravity, Cline, and Grok Bot are embedded directly inside the signed `23step` binary (`23step hooks install --global --local-server ...`).
- **Hardened Desktop Overlay (`desktop/`)**: Optional Electron floating HUD with ASAR integrity, locked Electron fuses, and OS Keychain token storage — connects directly to local `23step serve` (`127.0.0.1:8787`) or [23step Cloud](https://23step.com).
- **Privacy & Security by Default**: Binds strictly to loopback `127.0.0.1:8787` (refuses non-loopback binds without `--token`), scrubs secrets/PII offline (`23step redact`), supports `.23stepignore` and `23step pause`, and verifies binary provenance with `23step doctor`.

## Quick Start — 100% Local (Zero Account)

```bash
# macOS / Linux (Homebrew)
brew install 23step/tap/23step
brew install --cask 23step/tap/23step-overlay   # optional floating HUD on macOS

# Linux / macOS / Windows (PyPI — bundles native static binary, zero Go toolchain needed)
pip install 23step
# or run without installing globally:
uvx 23step serve --open
```

- **Debian / Ubuntu (APT):** hosted repo at `https://open.23step.com/apt` or download `.deb` from [GitHub Releases](https://github.com/23Step/23step/releases)
- **Fedora / RHEL / Rocky (DNF/RPM):** `sudo curl -fsSL https://open.23step.com/rpm/23step.repo -o /etc/yum.repos.d/23step.repo && sudo dnf install -y 23step`
- **Alpine / Arch / Windows:** download `.apk`, `.pkg.tar.zst`, or `windows_amd64.zip` / `windows_arm64.zip` from [GitHub Releases](https://github.com/23Step/23step/releases)

```bash
# 1. Start the local replay server (http://127.0.0.1:8787)
23step serve --open

# 2. Wire your coding agents locally (no login or API key required)
23step hooks install --global --local-server claude codex cursor gemini antigravity
23step doctor
```

### Direct Vertex AI / OTLP + Browser Click Capture

Point any OpenTelemetry GenAI, Vertex AI (`google-genai`), OpenLLMetry, OpenInference, or Vercel AI SDK agent at `http://127.0.0.1:8787/v1/traces`, and optionally attach headless Chrome CDP click/screenshot capture to the same session:

```bash
23step start \
  --api http://127.0.0.1:8787 \
  --headless \
  --cdp http://127.0.0.1:9222 \
  --join-session \
  --session <session-id>
```

## Build & Develop Locally

```bash
git clone https://github.com/23Step/23step.git
cd 23step
make dev     # builds ./23step and opens http://127.0.0.1:8787
make test    # runs Go CLI, Desktop Overlay, hook, and open.23step.com tests
```

## Repository Layout

| Path | Description |
| --- | --- |
| `cli/cmd/23step/` | `23step` CLI entrypoint (`serve`, `start`, `stop`, `hooks`, `mcp-proxy`, `doctor`, `pause`, `redact`, `update`) |
| `cli/pkg/` | Public Go packages (`contract`, `otel`, `client`, `reconcile`, `selfupdate`, `upload`) importable via `github.com/23Step/23step/cli/pkg/...` |
| `cli/internal/` | Local server & capture internals (`localserver`, `agent`, `authstore`, `capture`, `cdpinput`, `hooksinstall`, `tokenfile`, `urlprobe`, `x11`) |
| `desktop/` | Hardened Electron `23step Overlay` floating HUD |
| `.agents/hooks/`, `.cursor/hooks/`, `integrations/grokbot/` | Coding-agent hook scripts (run `make sync-hooks` after editing to update embedded copies) |
| `docs/` | Static site & hosted APT/RPM repos published at [open.23step.com](https://open.23step.com) |
| `packaging/` | Release packaging scripts (PyPI binary wheels, Homebrew formula renderer, Linux `.deb`/`.rpm`/`.apk`/Arch builders) |

## Local Binary vs. Self-Hosted Docker vs. 23step Cloud

- **23step Open (Local · Apache-2.0 — this repo):** Everything you need for individual local recording, thinking traces, click/screenshot replay, local MCP context sharing, semantic search, progress bars, steering pins, and export in a single 15 MB binary (`23step serve`).
- **23step Self-Hosted Server (Docker · AGPLv3 — [`23Step/23step-server`](https://github.com/23Step/23step-server)):** Deploy a shared team server inside your own Docker host or VPC (`ghcr.io/23step/23step-server:latest`) with embedded SQLite or Postgres 16 RLS, Local / Generic OIDC / Trusted Auth Proxy sign-in, OAuth 2.1 MCP, in-process **Catch (BYOK)** reviews, and optional free **Cloud Badge Relay** for firewalled GitHub/GitLab PRs.
- **23step Cloud (Managed — [23step.com](https://23step.com)):** Hosted multi-tenant workspaces, Shared Team Brain hybrid RAG, all 11 Marketplace AI plugins, FinOps analytics, and Enterprise compliance—connected via the exact same `23step` CLI and hooks.

## Contributing & Security

- **Contributing:** PRs are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) for the 30-second dev loop and guidelines.
- **Security:** See [SECURITY.md](SECURITY.md) for vulnerability reporting and verifying signed release binaries.
- **Website:** [open.23step.com](https://open.23step.com)
