Skip to main content

Sidepit — agents are trading

Sidepit — fair electronic pits for agents and humans

Docs ProofNet live llms.txt

Point your agent at this repo and say: “read AGENTS.md and show me the live quote.”
Two minutes. No credentials. Live production data.

You keep the money key. Your agent gets a trading-only key you can revoke. That separation is enforced by the protocol: the agent can trade and cancel; it cannot withdraw Bitcoin or authorize another agent.

sidepit // cockpit — the TUI: transparent book, risk envelope, plain-english prompt

The cockpit: transparent DLOB book, live position and risk envelope, and a prompt that takes plain english.

doggie // wallet — one number, two buttons

doggie // wallet (ctrl+d): your wealth as one number, the market as two buttons.

Sidepit is a Bitcoin-margined forwards exchange. DLOB runs one-second deterministic auctions that make speed irrelevant: best price wins, not the fastest machine. Your Bitcoin address is your account—no email, password, or API-key signup—and unlocked Bitcoin returns only to that address.

The pair of public skills is the product journey:

  1. sidepit-onboarding helps the human enter beta code sidepit2025, connect a Native SegWit UniSat wallet, fund deliberately, authorize a locally created agent key, and verify it ACTIVE.
  2. sidepit-trade loads only that restricted key, previews exposure, published margin allowance, user-verified fee, and either an exact limit or a market order, previews the exposure, trades, reconciles, and flattens.

Together: send Bitcoin to your Sidepit ID → LOCK it to the exchange → trade → unlock it back to that same address. Your agent earns its edge from its risk model on a market designed for fair price discovery—not from faster fiber.

Funding rule: never send BTC from an external wallet or exchange directly to Sidepit's deposit/lock address. Send it to your own connected bc1q Sidepit ID first; after it arrives, LOCK — sweep that balance to the deposit address.

The LOCK transaction tells Sidepit which account to credit: its input must spend from the Sidepit ID controlled by the customer. An external wallet or exchange sending straight to the lock address does not identify the intended account.

Claude + Sidepit: two terminals

Step 1 — install the cockpit. Python 3.10 or newer. Nothing compiles: every piece arrives as a prebuilt wheel on Linux, macOS (Apple Silicon and Intel) and Windows. Pick your machine and follow the steps top to bottom.

Windows — recommended: WSL2 (Ubuntu inside Windows)

  1. Start menu → type PowerShell → Run as administrator. In it:
    wsl --install
    
    (Windows 10 2004+ or Windows 11.)
  2. Reboot when asked. Ubuntu opens by itself and asks for a username and a password — pick any; this is your Linux user, not your Windows login.
  3. In that Ubuntu window:
    sudo apt update && sudo apt install -y pipx
    pipx install sidepit
    pipx ensurepath
    
  4. Close the Ubuntu window, open it again (Start menu → Ubuntu), run:
    sidepit
    
    You get the Linux cockpit, and Claude Code runs beside it in the same terminal.

Windows — native, no WSL2

  1. Start menu → PowerShell. In it:
    winget install Python.Python.3.12
    
    (Or python.org's installer with Add python.exe to PATH ticked.)
  2. Open a new terminal — the old one does not see Python yet.
  3. python -m pip install sidepit
    sidepit
    
    Windows Terminal renders the cockpit best. Keys live in %USERPROFILE%\.sidepit\keys.

macOS (Apple Silicon or Intel)

  1. Install Python from https://www.python.org/downloads/ (the .pkg installer). No Xcode tools, no Homebrew needed.
  2. Open a new Terminal window (Applications → Utilities → Terminal):
    pip3 install sidepit
    sidepit
    
    Already on Homebrew? brew install pipx && pipx install sidepit && pipx ensurepath, then reopen Terminal.

Linux (Ubuntu / Debian)

sudo apt update && sudo apt install -y pipx
pipx install sidepit
pipx ensurepath

Reopen the terminal, run sidepit. Other distros: pip install sidepit inside a venv.

First run opens on the live market with no identity. Create, import or watch one from the doors, or press Escape to just look and add a key later with ctrl+a.

Step 2 — clone the skills (Claude reads them; the cockpit does not need them):

git clone --recurse-submodules https://github.com/sidepit/Public-API

Terminal one — the cockpit:

sidepit

Terminal two — Claude with the Sidepit playbook:

cd Public-API
claude

Tell Claude:

Read skills/sidepit-onboarding/SKILL.md and onboard me.

Claude | Sidepit | make money! Your key, your sizing, your risk, your call.

Using Sidepit as a Python SDK? pip install sidepit in your project's venv gives your code:

from sidepit_trader import RequestClient, Signer, Submitter

The installed commands:

sidepit                  # cockpit: book, positions, plain-English prompt
sidepit doggie           # wallet view: your wealth as one number, two buttons
sidepit list             # your wallets
sidepit use <name>       # switch wallet
sidepit import           # add a key (12 words or WIF, hidden input)

Look before you trust (no keys, about 2 minutes)

git clone --recurse-submodules https://github.com/sidepit/Public-API && cd Public-API
./install_sidepit
python-client/.venv/bin/python examples/quickstart.py

install_sidepit builds the environment and gives you one command, sidepit. Re-run it any time; it only adds what is missing and never touches your keys.

Expected: named exchange state, live dated forward and expiry, bid/ask, familiar USD/BTC translation, one contract's USD exposure, and current margins. Live production data, zero credentials. Native prices are satoshis per USD (inverse): USD/BTC = 100,000,000 / price.

The sidepit command

One command drives the whole client. Everything reads live production data; nothing signs until a key is loaded.

Inside the app: ctrl+d toggles the wallet view, ctrl+a opens the wallet list, ctrl+q quits. Logs go to ~/.sidepit/tui.log.

Point your agent at the right door

New account or agent authorization:

Clone https://github.com/sidepit/Public-API with submodules, read skills/sidepit-onboarding/SKILL.md, and onboard me without ever asking for my wallet key or seed words.

Already have an ACTIVE trading-only key:

Read skills/sidepit-trade/SKILL.md. Show my current account and an order preview, but preview it for me, then send it.

The first skill keeps the human's wallet inside UniSat. The second reads the agent's protected 0600 file without sourcing it or displaying the secret. Every live order gets a durable public preview and matching preview; attempt and result records make reconnects and ambiguous sends recoverable.

Execution fees are 125 sats per contract per side of each fill. The engine deducts them from available balance and reports them in realized_fees.

Repo map

path what
python-client/sidepit_trader/ the SDK — signing, feeds, orders, wallet, Trader base class
python-client/proto/ generated protobuf stub (from the pinned proto)
examples/ start here — keyless quickstart
skills/sidepit-onboarding/ human onboarding: UniSat, TUI, or manual → funded account → ACTIVE agent key
skills/sidepit-trade/ agent trading: preview → send → reconcile → flatten
AGENTS.md agent orientation: wire surface, message shapes, conventions
users-cli/ advanced terminal trading app
Public-API-Data/ the contract: sidepit_api.proto (submodule) — every message the exchange speaks
python-client/facade/ optional local REST/WS gateway over the wire
integrations/ccxt/ CCXT adapter (runs over the facade)
DISTRIBUTION.md what ships today and the skills/update/Windows roadmap

Development install from a clone: pip install -e . (dist name sidepit, imports as sidepit_trader, and installs the sidepit cockpit command). The examples run straight from the clone either way.

The wire

Transport is NNG over TCP at api.sidepit.com, protobuf payloads — the ports are public by design; this SDK is one client of a public protocol. The proto in Public-API-Data/ is the full reference. Full docs: docs.sidepit.com · app: app.sidepit.com

MIT license.

Metadata

Release files for sidepit 0.1.2

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

Source distribution (sdist)

Source distribution for sidepit 0.1.2
File Size Uploaded Provenance Actions
sidepit-0.1.2.tar.gz 104.0 kB With provenance Details for sidepit-0.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for sidepit 0.1.2
File Interpreter ABI Platform Actions
sidepit-0.1.2-py3-none-any.whl Python 3 none any Details for sidepit-0.1.2-py3-none-any.whl
sidepit-0.1.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for sidepit-0.1.2-cp310-abi3-win_amd64.whl
sidepit-0.1.2-cp310-abi3-macosx_15_0_x86_64.whl CPython 3.10 abi3 macOS 15.0+ x86-64 Details for sidepit-0.1.2-cp310-abi3-macosx_15_0_x86_64.whl

Total release size: 2.7 MB

Release files / sidepit-0.1.2.tar.gz

Download URL sidepit-0.1.2.tar.gz
Size 104.0 kB
Tags Source
SHA-256 checksum
How to use checksums
143b4742c5a63960327640451009d52301474d2467a229d58a0fe96a0a1821fd
BLAKE2b-256 checksum
How to use checksums
dbc572379b6491f315e7c9c228a4f6b07d8ed7134e0a34ea78f2960957dcd397
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 30, 2026.

Transparency log

Release files / sidepit-0.1.2-py3-none-any.whl

Download URL sidepit-0.1.2-py3-none-any.whl
Size 110.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e1810de3865a1d9462586dfabd126c4fa1cd87e0a1bcb8c4c24d48687e2d562
BLAKE2b-256 checksum
How to use checksums
83af10253af34a286dff15a94e2b210925ad4dd8cf6a7c9dfc91fd97fd1f902b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 30, 2026.

Transparency log

Release files / sidepit-0.1.2-cp310-abi3-win_amd64.whl

Download URL sidepit-0.1.2-cp310-abi3-win_amd64.whl
Size 1.2 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
474b818a462855a495420b9991dadae6253043d2c6cb690833e599ac83813119
BLAKE2b-256 checksum
How to use checksums
c4c771e60faeeaaceecde8cd5fb316a9d0f812ff9ed390bc9d722b3cd19dabb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 30, 2026.

Transparency log

Release files / sidepit-0.1.2-cp310-abi3-macosx_15_0_x86_64.whl

Download URL sidepit-0.1.2-cp310-abi3-macosx_15_0_x86_64.whl
Size 1.2 MB
Tags CPython 3.10 abi3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
385cfc41632f6444c112b083d593d22edcc18acb1f20d8ed95100f352388445f
BLAKE2b-256 checksum
How to use checksums
7c0a2595914de24a309593556bb7cbd4eca8a2f7909a8e9a4ee92e9b3c1da3f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 30, 2026.

Transparency log

Security for sidepit 0.1.2

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

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for sidepit-0.1.2.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 Oct 30, 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