Skip to main content

reinogent — Official Python SDK & CLI

Lightweight Python SDK and reino CLI for discovering, downloading, installing dependencies for, and running AI Models, MCP Servers, and Agents from ReinoGent.

Installation

# Core SDK + CLI (zero mandatory dependencies)
pip install -e ./cli

# Or install with optional runtime dependency extras:
pip install -e "./cli[transformers]"   # torch, transformers, safetensors, accelerate
pip install -e "./cli[embeddings]"     # sentence-transformers
pip install -e "./cli[mcp]"            # mcp Python SDK
pip install -e "./cli[agent]"          # fastapi, uvicorn, httpx (for building agents)
pip install -e "./cli[all]"            # all runtime extras

(Once published to PyPI: pip install reinogent / pip install "reinogent[transformers]".)

CLI Quick Start

# Works out of the box against ReinoGent (optional: point at localhost for local dev)
# reino config set-api http://localhost:8000/api

# Browse & inspect dependencies
reino list models --african --task text-generation
reino deps model bge-small-en-v1-5
reino deps mcp github-mcp-server

# Pull resources (generates `reino.json` + `reino_run.py` bundle) & install deps
reino pull model bge-small-en-v1-5 --install-deps
reino pull mcp github-mcp-server --config
reino pull mcp github-mcp-server --install-deps
reino pull agent <agent-id> --install-deps

# Run any packaged ReinoGent bundle (`model`, `mcp`, or `agent`)
reino run ./bge-small-en-v1-5 --prompt "Hello ReinoGent"
reino run ./github-mcp-server

# Scaffold a new SDK-native ReinoGent AgentApp project
reino init "Swahili Support Bot" --model bge-small-en-v1-5 --mcp github-mcp-server

Build an Agent in 10 Lines (reinogent.AgentApp)

import reinogent

app = reinogent.AgentApp(
    name="Swahili Support Bot",
    model="bge-small-en-v1-5",
    mcp_tools=["github-mcp-server"],
)

@app.on_message
async def handle(ctx: reinogent.AgentContext):
    return f"Received: {ctx.input}"

if __name__ == "__main__":
    app.serve(port=8001)  # Exposes POST /invoke (HMAC verified), GET /health, GET /reino-manifest

Python SDK Quick Start

import reinogent

# 1. Load a ReinoGent model directly (auto-resolves Transformers / Sentence-Transformers)
model = reinogent.load_model("bge-small-en-v1-5")

# 2. Download raw model weights/files from upstream CDN
local_dir = reinogent.download_model("bge-small-en-v1-5", dest_dir="./weights")

# 3. Fetch ready-to-use MCP client configuration
mcp_cfg = reinogent.get_mcp_config("github-mcp-server")

# 4. Run a hosted ReinoGent agent
result = reinogent.run_agent("agt_12345", "Summarize Q4 metrics", token="<your-jwt>")

# 5. Verify ReinoGent webhook HMAC-SHA256 signatures inside your FastAPI/Flask agent
is_valid = reinogent.verify_signature(body, x_reino_signature, x_reino_timestamp, SECRET_KEY)

Publishing to PyPI

pip install build twine
cd cli
python -m build
twine upload dist/*

Metadata

Release files for reinogent 0.1.1

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

Source distribution (sdist)

Source distribution for reinogent 0.1.1
File Size Uploaded Provenance Actions
reinogent-0.1.1.tar.gz 18.3 kB Without provenance Details for reinogent-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reinogent 0.1.1
File Interpreter ABI Platform Actions
reinogent-0.1.1-py3-none-any.whl Python 3 none any Details for reinogent-0.1.1-py3-none-any.whl

Total release size: 38.2 kB

Release files / reinogent-0.1.1.tar.gz

Download URL reinogent-0.1.1.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
877428bdf0629a8d75e724864f245e733a8f9edf6b9724d8b99b6de6dc934f99
BLAKE2b-256 checksum
How to use checksums
228354b0e575a703022ae62e275151b94b579b4931afff8e3bfd2687e35bdc6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Release files / reinogent-0.1.1-py3-none-any.whl

Download URL reinogent-0.1.1-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca4ad70921b538fe9d23ffb5bc9e2bc5a567e81c2dc5a1f758420ba1efb77aa9
BLAKE2b-256 checksum
How to use checksums
fac264b6df6eb6edbfc775bcdf8220d679173d00ea9ac40fc3afb43812ae937f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Security for reinogent 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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