reinogent — Official Python SDK, ADK & CLI
Lightweight Python SDK, ADK (Agent Development Kit), and reino CLI for discovering, downloading, building, and running AI Models, MCP Servers, and Autonomous Agents locally or on ReinoGent.
Installation
pip install reinogent
# Optional runtime extras:
pip install "reinogent[transformers]" # torch, transformers, safetensors, accelerate
pip install "reinogent[embeddings]" # sentence-transformers
pip install "reinogent[mcp]" # mcp Python SDK
pip install "reinogent[agent]" # fastapi, uvicorn, httpx (for hosting AgentApp)
pip install "reinogent[all]" # all runtime extras
ReinoGent ADK (Build & Run Local Agents + Live MCP Tools)
from reinogent.adk import Agent, LocalAgentRunner, SequentialWorkflow, tool
@tool
def add(a: int, b: int) -> int:
"""Add two integers."""
return a + b
# 1. Build a local agent with your own Ollama / LM Studio / Gemini model + live local MCP tools
with Agent(
name="DevHelper",
model="ollama/qwen2.5:7b", # or local/model, openai/gpt-4o-mini, gemini/gemini-2.5-flash
instructions="You are a sharp developer assistant.",
tools=[add],
mcp_servers=["github-mcp-server"], # auto-fetches stdio config from ReinoGent & connects live!
) as agent:
print(agent.ask("Check open issues in my repo and add 2 + 2"))
# 2. Or run ANY ReinoGent marketplace agent locally on your own local model:
with LocalAgentRunner.from_reinogent(
agent_id="<agent-id>",
model="ollama/llama3.2:3b",
mcp_servers=["github-mcp-server"],
) as local_agent:
print(local_agent.ask("Summarize my latest tasks"))
Run Local Agents from the Terminal (reino chat)
# Run a ReinoGent agent locally with Ollama + local MCP tools
reino chat <agent-id> --model ollama/qwen2.5:7b --mcp github-mcp-server
# Or chat standalone with a persistent session
reino chat --model ollama/llama3.2:3b --session my-dev-session
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.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reinogent-0.2.0.tar.gz | 29.5 kB | Without provenance | Details for reinogent-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reinogent-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for reinogent-0.2.0-py3-none-any.whl |
Total release size: 62.9 kB
Release files / reinogent-0.2.0.tar.gz
| Download URL | reinogent-0.2.0.tar.gz |
|---|---|
| Size | 29.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
487fe63613a43b7b3ddc3e94151eda52606fc00040aa56b28564ae17d55195e7
|
|
BLAKE2b-256 checksum How to use checksums |
d5c49ab547ae1719274321dfb462058d98b58408cd000b8a532ffc90f51a4bcf
|
| 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.2.0-py3-none-any.whl
| Download URL | reinogent-0.2.0-py3-none-any.whl |
|---|---|
| Size | 33.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
718513bfd79d8cabc6e6e89ac11de1a19a588a9840d89a3d878e3931a47ab218
|
|
BLAKE2b-256 checksum How to use checksums |
4b62a62f0209c609808a2a81609c682e4666742c202ced39d6d219522e8e8995
|
| 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.2.0
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.