Skip to main content

Nexus

Enterprise-ready agent framework. Describe agents in config. Wire who is calling and where data lives at run time. Call run().

No global LLM settings. No shared agent singleton. Built for multi-tenant SaaS apps.

Beta — under active development. See NEXUS_AGENT_PRD.md for the design spec.

Why Nexus?

  • SaaS-native — tenant, user, API keys, and storage passed per request
  • Context-first (RCS) — compresses old tool results inline; no extra LLM calls
  • Config-driven — YAML manifests for teams; Python for wiring and tools
  • Provider-agnostic — bring your own model; pluggable storage
  • Voice — gRPC media servers + WebSocket browser UI on the same agent core

Install

Published on PyPI as nexus-enterprise-agent. Import as nexus.

pip install nexus-enterprise-agent
# or
uv add nexus-enterprise-agent
Extra Adds
sqlite, postgres, redis, file Storage adapters
openai, anthropic, gemini, litellm, groq, ollama LLM clients
fastapi FastAPI + WebSocket helpers
realtime Voice transports (websockets, httpx)
grpc gRPC client for media servers
server GPU media server engines (torch, transformers)
moshi Speech-to-speech client (Moshi/Human-1)
pip install "nexus-enterprise-agent[sqlite,litellm,fastapi,realtime,grpc]"

Contributors:

git clone https://github.com/gowrav-vishwakarma/nexus-enterprise-agent.git
cd nexus-enterprise-agent
uv sync --extra dev --extra sqlite --extra file
cp .env.example .env   # set your LLM API key

Text agents (YAML)

Three files: manifest, prompts module, short runner script.

uv run python examples/orchestration/run_team.py "Analyze Q4 revenue"

Python API (same agents, built in code):

from nexus import AgentRunner, RunContext
result = await AgentRunner(config=agent_config, tool_registry=registry, run_context=ctx).run("Hello")

Walkthrough: docs/getting-started.md (YAML) · docs/getting-started-python.md (Python)


Voice agents (gRPC + Voice Lab)

Cascaded voice: VAD → STT → LLM → TTS over gRPC media servers. Browser connects via WebSocket.

./scripts/run_voice_lab.sh

Opens http://localhost:8787 — allow microphone, click the mic button.

Python API (same manifest, custom transport):

from nexus.realtime.runtime import RealtimeRuntime
from nexus.realtime import RealtimeSession
from nexus.realtime.transport.websocket import WebSocketTransport

runtime = RealtimeRuntime.from_manifest(manifest, run_context=ctx)
pipeline = runtime.build_pipeline("voice_grpc")
session = RealtimeSession(pipeline, WebSocketTransport(websocket), session_id=sid)
await session.run_audio()

Guide: docs/guides/voice-lab.md · docs/guides/model-servers.md


Learn more

Full docs: docs/index.md

Topic Doc
Architecture docs/architecture.md
YAML walkthrough docs/getting-started.md
Python API docs/getting-started-python.md
Voice Lab docs/guides/voice-lab.md
gRPC media servers docs/guides/model-servers.md
Pipelines (text, voice, teams) docs/guides/pipelines.md
Voice / channels reference docs/reference/realtime-agents.md
SaaS example docs/guides/saas-example.md
All examples docs/examples.md

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexus_enterprise_agent-0.3.3.tar.gz (673.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexus_enterprise_agent-0.3.3-py3-none-any.whl (251.4 kB view details)

Uploaded Python 3

File details

Details for the file nexus_enterprise_agent-0.3.3.tar.gz.

File metadata

File hashes

Hashes for nexus_enterprise_agent-0.3.3.tar.gz
Algorithm Hash digest
SHA256 6ae98a8eeb2ae8a11264462f5c2268b3d5c2381eabb30f40e6518b73b9a3800d
MD5 a80b9c7b588c19361658452c1f8d0314
BLAKE2b-256 80e362123a41d4aad010a341e45c530f615bdd63f3b96734c74541ad5d18a942

See more details on using hashes here.

File details

Details for the file nexus_enterprise_agent-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nexus_enterprise_agent-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a52d685bd8a2bd2f8ab4dd2bdcb6a3f7c0f584bb1f48e08fa80b5e4ea76f6e0e
MD5 dc75414a6a3ce9823b930cfa95351b4f
BLAKE2b-256 c48f632c81f6bf283d879c352d4d9aaa6a8515c49b1ceb7b9f69a8e0a090efc3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.1

2 files

0.4.0

2 files

This release

0.3.3 This release

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 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