Skip to main content

deepagents-trace (Python server + CLI)

PyPI distribution name: deepagents-trace (the agenttrace name is already taken on PyPI by an unrelated project — TensorStax's own agent-tracing tool — so this package is published under a different name; the importable module, the CLI command, and the product itself are still called agenttrace/AgentTrace).

pip install deepagents-trace && agenttrace ui — starts the AgentTrace web API (and a /ws live-stream) with zero Node/Bun process, mlflow ui-style. For local development against this checkout: pip install -e python-server.

This is Phase 1 + 3 of the Python migration plan: a FastAPI backend that is a 1:1 contract port of the Next.js API (src/app/api/* in the main repo), plus the CLI. Phase 2 is not done yet — there is no bundled frontend, so / currently serves a placeholder page confirming the API is up; use the API directly (/api/*) or the existing Next.js dashboard against this backend's data once Phase 2 lands.

Install & run

pip install deepagents-trace       # or `pip install -e python-server` against this checkout
agenttrace ui                      # http://127.0.0.1:3000, SQLite by default (./agenttrace.db)
agenttrace ui --database-url postgresql://user:pass@localhost:5432/agenttrace
agenttrace ui --port 8080 --host 0.0.0.0

agenttrace db init creates the schema explicitly (also runs automatically on agenttrace ui startup) — schema-push style (Base.metadata.create_all), matching how this repo already runs prisma db push rather than migrations.

What's ported

Next.js (src/) Python (agenttrace/server/)
prisma/schema.prisma models.py (SQLAlchemy) — same User/Project/Run/Event/ApiKey shape
src/lib/auth.ts (NextAuth) routes/auth.py + security.py — signed-cookie session (not NextAuth wire-compatible)
src/lib/api-auth.ts, src/lib/keys.ts deps.py, security.py — same atr_<32 hex> key format/hash
src/app/api/**/route.ts routes/{projects,runs,events,keys,stats}.py — same JSON shapes
mini-services/socket-service (Socket.IO) realtime.py (/ws, plain JSON protocol — see its docstring)

The POST /api/events contract (the one integrations/agenttrace-langchain depends on) is unchanged: same fields, same atr_ key auth, same event types.

Tests

pip install -e "python-server[dev]"
pytest python-server/tests

Releasing a new version

Published: pypi.org/project/deepagents-trace — Trusted Publishing (OIDC) is set up, no API token stored as a GitHub secret.

To ship a new version:

  1. Bump version in pyproject.toml.
  2. Commit, then push a tag matching python-server-v* (e.g. python-server-v0.1.2) — .github/workflows/publish-pypi.yml builds and publishes automatically. A GitHub Release (published event) also triggers it, or run the workflow manually (workflow_dispatch).
  3. Locally, verify before tagging: python -m build && twine check dist/* in this directory.

Trusted publisher config on pypi.org (Publishing → Trusted publishers), for reference/if it ever needs re-registering: project deepagents-trace, owner CouLiBaLy-B, repo agenttrace, workflow publish-pypi.yml, environment pypi.

Known gaps vs. the Next.js backend (tracked for later phases)

  • No frontend bundle yet (Phase 2).
  • No demo-account seeding on signup (the Next.js version seeds 3 sample projects — intentionally skipped here to keep this phase scoped to the API contract).
  • Realtime wire protocol is plain JSON over /ws, not the Socket.IO protocol — the current React frontend's socket.io-client won't talk to it until Phase 2 adapts it.

Metadata

Release files for deepagents-trace 0.1.6

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

Source distribution (sdist)

Source distribution for deepagents-trace 0.1.6
File Size Uploaded
deepagents_trace-0.1.6.tar.gz 547.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepagents-trace 0.1.6
File Interpreter ABI Platform
deepagents_trace-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / deepagents_trace-0.1.6.tar.gz

Download URL deepagents_trace-0.1.6.tar.gz
Size 547.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eeed77a6c295f26d4efb70c9d89b0413138c817909b2412de1f80628c12d5edf
BLAKE2b-256 checksum
How to use checksums
f2586fcada3ac069ffb1a9ec719522032f8aae4e17abce2fc7a2fa4392def105
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 22, 2026.

Transparency log

Release files / deepagents_trace-0.1.6-py3-none-any.whl

Download URL deepagents_trace-0.1.6-py3-none-any.whl
Size 570.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7dc21a9440cabf963741b170651b105f0677207581712a80f9c7abc04e779eb1
BLAKE2b-256 checksum
How to use checksums
a09dc3071433c7d96674be3e8deecc0bf1dcde2f4e60c42dbddc794f76f4d2e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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