Skip to main content

getbased-agent-stack

Meta-package bundling the full getbased agent stack into one install: the MCP adapter, the local knowledge server, the browser dashboard, an orchestration CLI (init / install / connect / mcp-config), systemd user units for the knowledge server + dashboard, and paste-ready configs for Claude Code, Claude Desktop, Cursor, Cline, Codex CLI, Hermes, and OpenClaw.

Part of the getbased-agents monorepo.

Install

Requires Python 3.11 or newer. To rebuild an existing Python 3.10 tool environment while preserving configuration and library data, follow the migration instructions.

Linux, one command:

curl -sSL https://getbased.health/install.sh | bash

Runs end-to-end: installs getbased-agent-stack[full] via whichever of uv or pipx is available, exposes sibling binaries, runs a non-interactive local-only init, and starts the knowledge server + dashboard as systemd user services. Read the script first if you're cautious.

If you are connecting a private getbased profile, copy the command from Settings → Agent Access in the app. It uses the same installer and then runs getbased-stack connect for the selected client:

curl -fsSL https://getbased.health/install.sh | bash -s -- connect <target> --setup 'gbsetup_v1_...'

That setup payload contains private credentials. Keep it out of logs and public issues.

Manual — pipx:

pipx install --python python3.12 --include-deps "getbased-agent-stack[full]"

The --include-deps flag is required — it exposes getbased-mcp, lens, and getbased-dashboard alongside getbased-stack on your PATH. Without it, pipx only links the stack's own entry point and the MCP/rag/dashboard binaries stay hidden inside the venv.

Manual — uv (0.11+):

uv tool install \
  --python 3.12 \
  --with-executables-from getbased-rag \
  --with-executables-from getbased-dashboard \
  --with-executables-from getbased-mcp \
  "getbased-agent-stack[full]"

--with-executables-from is uv's equivalent of pipx's --include-deps — one tool venv, all four binaries on PATH.

Pulls:

  • getbased-mcp — stdio MCP server that Claude Code / Hermes / OpenClaw spawn
  • getbased-rag — local knowledge server (FastAPI + Qdrant + MiniLM/BGE)
  • getbased-dashboard — web UI for library management, MCP config generation, and agent-activity inspection
  • The getbased-stack discovery CLI
  • [full] extra: PDF/DOCX parsers + ONNX runtime for hardware-accelerated embeddings

Total install: ~500 MB (the ML deps dominate). Smaller installs available — pipx install getbased-mcp (10 MB, agent only), pipx install "getbased-rag[full]" (RAG only), pipx install getbased-dashboard (UI + MCP; pulls rag if you want the Knowledge tab working).

Quickstart — one command

Interactive wizard:

getbased-stack init

Non-interactive (for scripted installs and curl | bash; install.sh uses this):

getbased-stack init --yes --local-only

The wizard (~30 seconds):

  1. Accepts your private --setup gbsetup_v1_... code from Settings → Agent Access (or --local-only to skip Agent Access; existing credentials are kept automatically on re-runs)
  2. Generates a rag API key if one doesn't exist
  3. Writes ~/.config/getbased/env (mode 0600) — the shared config file
  4. Installs systemd user units for rag + dashboard, enables them, starts them

On non-systemd hosts (Docker, macOS, WSL1) step 4 writes the unit files but skips activation with a clear message instead of crashing — re-run on a systemd-enabled host or start lens serve + getbased-dashboard serve manually.

Private setup from the app:

getbased-stack connect hermes --setup 'gbsetup_v1_...'

Manual config helper:

getbased-stack mcp-config claude-desktop   # or: claude-code, cursor, cline, codex, hermes, openclaw

The snippet carries only GETBASED_STACK_MANAGED=1 in its env block. No secrets in client configs — every MCP spawn reads the shared env file and loads the token + rag URL + API key path from there.

Open the dashboard:

http://127.0.0.1:8323

Login URL with bearer key:

getbased-dashboard login-url   # prints http://127.0.0.1:8323/?key=...

Upload docs, create libraries, manage sources, and test the MCP probe from the web UI. Rotate the sync token from the CLI (see below) or by editing ~/.config/getbased/env directly.

Surviving reboot on headless hosts

User systemd services stop on logout. On a headless server (no GUI session), they won't come back at boot unless you enable linger once:

sudo loginctl enable-linger $USER

getbased-stack init prints this reminder when it detects a headless environment. On a laptop with a GUI login, linger is nice-to-have — services start when you log in.

Other commands

getbased-stack status          # env file, unit state, linger
getbased-stack set GETBASED_TOKEN=new
getbased-stack set GETBASED_AGENT_CONTEXT_KEY=new
getbased-stack install         # re-apply unit files after package upgrade
getbased-stack uninstall       # stop + disable + remove units

Migrating from an older install

If you have a hand-rolled setup (standalone lens-rag.service, hermes-style ~/.hermes/config.yaml with MCP env), leave it alone — getbased-stack init only writes new paths and installs new unit names (getbased-rag.service, getbased-dashboard.service), so it can coexist. The opt-in loader in every binary is gated on GETBASED_STACK_MANAGED=1; without that flag set, every binary behaves exactly as before.

If you're running the existing Hermes VM deployment on this host, don't run init there. Your ~/.hermes/config.yaml continues to supply env explicitly; nothing from this package touches it.

Architecture

Claude Code / Hermes / OpenClaw          Browser
        │ MCP (stdio)                       │ HTTP
        ▼                                   ▼
  getbased-mcp                       getbased-dashboard   (localhost:8323)
   │        │                          │             │
   │ HTTP   │ HTTP                     │ proxies     │ spawns stdio for Test
   ▼        ▼                          ▼             ▼
context gateway   getbased-rag  ◀────────┘     getbased-mcp
          (localhost:8322)

The MCP holds no persistent state; it's a thin translator between MCP tool calls and two HTTP backends:

  • sync.getbased.health/api/context — encrypted lab context pushed by your PWA session (authorized by Agent Access token, decrypted locally with Agent Context key)
  • localhost:8322 (getbased-rag) — your local research library

The dashboard is likewise stateless — it proxies rag for Knowledge operations, imports getbased_mcp to introspect env/config, and spawns the MCP binary on demand to verify it works.

Version compatibility

Stack mcp rag dashboard Protocol
0.1.x ≥0.2.0 ≥0.1.0 — v1 (multi-library)
0.2.x ≥0.2.2 ≥0.6.0 ≥0.5.0 v1 (+ streaming ingest, per-library models)
0.4.x ≥0.2.3 ≥0.7.1 ≥0.6.1 v1 (+ shared env file, getbased-stack init, systemd units)
0.5.x ≥0.2.9 ≥0.7.5 ≥0.6.8 v1 (+ getbased-stack connect, multi-client setup targets; explicit local-only scripted init)
0.6.0 ≥0.3.0 ≥0.8.0 ≥0.7.0 v1 (Python ≥3.11, ONNX Runtime ≥1.31, security updates)
0.6.1 ≥0.3.1 ≥0.8.1 ≥0.7.1 v1 (PDF parser, file locking, build tooling, and certificate trust security updates)
0.6.2 ≥0.3.2 ≥0.8.2 ≥0.7.2 v1 (end-to-end security/bugfix hardening, opentelemetry-api CVE fix, refreshed deps, dashboard Codex & UX fixes)

Bump the meta's major when sibling protocols break; bump siblings freely for normal features.

Development

This package is the meta — the interesting code lives in sibling packages. See the monorepo root README for workspace setup.

The integration test (tests/test_integration.py) spins up lens serve in a subprocess, ingests a fixture, and exercises every MCP tool round-trip. Catches drift between the siblings the way the v1.21 catch-up drift would have been caught if the test existed then. The dashboard has its own test suite (cd packages/dashboard && uv run pytest) covering the proxy, modal logic, stdio probe, and activity-log handling.

Licence

AGPL-3.0-or-later, matching the siblings.

Metadata

Release files for getbased-agent-stack 0.6.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 getbased-agent-stack 0.6.2
File Size Uploaded Provenance Actions
getbased_agent_stack-0.6.2.tar.gz 41.8 kB With provenance Details for getbased_agent_stack-0.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for getbased-agent-stack 0.6.2
File Interpreter ABI Platform Actions
getbased_agent_stack-0.6.2-py3-none-any.whl Python 3 none any Details for getbased_agent_stack-0.6.2-py3-none-any.whl

Total release size: 67.3 kB

Release files / getbased_agent_stack-0.6.2.tar.gz

Download URL getbased_agent_stack-0.6.2.tar.gz
Size 41.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3ba27b59992f71f621b7a82b0c5bd6310b272c6f815a6cae64e504422bccdb4c
BLAKE2b-256 checksum
How to use checksums
63a69e22dabf571d360cbd8ee27c94b9753bf498d4b525976836ed9aa6238e71
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 Dec 1, 2026.

Transparency log

Release files / getbased_agent_stack-0.6.2-py3-none-any.whl

Download URL getbased_agent_stack-0.6.2-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4527b060a721746a3dde8ac23f441894675bbd0398bef9fad587dcab1c2a301c
BLAKE2b-256 checksum
How to use checksums
2e2bee99d739cff6e4a45babc9f32313eb114b8f67de27772c2f491074f6f3f3
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 Dec 1, 2026.

Transparency log

Security for getbased-agent-stack 0.6.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

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

Select from 2 files

Attestation for getbased_agent_stack-0.6.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 Dec 1, 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