← Back to Leaderboard
AJoshuaC215

JoshuaC215/agent-service-toolkit

Self-host LangGraph agents with a FastAPI service and a Streamlit chat UI

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A+ · 88/100
Maintenance Activity
● Updated 4d ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption22/25
Release Cadence11/20
License Clarity20/20
DockerSelf-HostedAPI
Total Stars
★ 4,597
24h Growth
+2
7d Growth
+11
Forks
815

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

JoshuaC215/agent-service-toolkit Star History (2024-08-06 - 2026-12-04) ALL-TIME STAR HISTORY (2024-08 – 2026-12) +4.6k in 850d · avg +5/day 4.9k 2.4k 0 2024-08-06: ★ 12024-09-28: ★ 2642024-11-23: ★ 4662025-01-18: ★ 1,5912025-03-15: ★ 2,3842025-05-10: ★ 2,8052025-07-05: ★ 3,1822025-08-30: ★ 3,4242025-10-25: ★ 3,6822025-12-20: ★ 3,8702026-02-14: ★ 4,0142026-04-11: ★ 4,1362026-06-06: ★ 4,2742026-08-01: ★ 4,3752026-09-26: ★ 4,4862026-12-04: ★ 4,597 ★ 4.6k 2024-08 2025-10 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

The toolkit separates the agent graph, service API, Python client, and chat UI. Graphs live in src/agents/ and are registered in src/agents/agents.py. FastAPI serves the selected graph by URL path through src/service/service.py; /info exposes available agents and models. Pydantic defines protocol data and settings, with protocol types in src/schema/ and model definitions and settings in src/core/.

The service uses async request handling. AgentClient in src/client/client.py exposes synchronous and asynchronous calls, with and without streaming, and the bundled Streamlit app uses that client rather than running the graphs directly. A separate frontend can also use the per-agent AG-UI endpoint. Registration is a code-level extension: adding a graph means defining it and updating the registry.

Key Capabilities & Differentiators

The LangGraph examples cover human review with interrupt(), routing with Command, long-term memory with Store, and supervision via langgraph-supervisor. FastAPI exposes token-level and message-level streaming as well as non-streaming invocation. /threads lists a user's previous conversations by agent and drives Streamlit's Previous Chats sidebar. The UI also supports voice input and output, and its star ratings integrate with LangSmith.

Model inference can use external APIs or local serving via Ollama, vLLM, or SGLang; there is also a Vertex AI setup path. The basic ChromaDB retrieval agent requires the optional rag extra, and Safeguard content moderation requires a Groq API key. Optional smoke tests cover PostgreSQL and MongoDB checkpointers, AG-UI, and LangFuse tracing; the checkpointer tests verify that the selected backend is actually in use rather than silently falling back to SQLite.

Trade-offs & Limitations

Compared with wiring LangGraph directly into an existing backend, this toolkit gives a small team a tested starting point across the graph, API, client, and UI. If identity, persistence, and frontend delivery already exist in your stack, adopting the full template adds components and conventions you may not need. Streamlit is useful for validating a workflow quickly; the client and AG-UI endpoint let you replace it without replacing the graph service.

Compared with a managed agent platform, this is a source-level deployment you operate yourself. Review thread authorization, credential handling, database backups, and how deployments handle active streams before exposing it to multiple users. Unit and integration tests are included, but infrastructure-dependent smoke tests are opt-in rather than part of default CI. The MIT license is permissive; it does not settle model-provider terms or where prompts and traces are processed.

Hardware & Deployment Guide

Native setup requires Python 3.12 through 3.14 and at least one configured model backend in .env. Install with uv sync --frozen, then run python src/run_service.py and streamlit run src/streamlit_app.py in separate shells. Docker Compose v2.23.0 or newer supports the development watch workflow. It starts PostgreSQL 16, the API on port 8080, and Streamlit on port 8501; the API waits for PostgreSQL to pass its health check, and PostgreSQL uses a named volume.

Treat the Compose defaults as a development baseline: replace the default database credentials, restrict access to the mapped database port, and configure API authentication before exposing the service. docker compose watch handles source changes, but dependency changes require a rebuild. Remote inference keeps model compute off the service host; local inference must be sized separately for the selected model and concurrency. The package manifest lists version 0.1.0 and beta status, with no GitHub release listed to establish an upgrade history.

Agent routing: Register graphs in src/agents/agents.py; discover available agents and models via /info.
Graph control: LangGraph v1.0 examples cover interrupt() for human review, Command for flow control, Store for long-term memory, and langgraph-supervisor.
Streaming and integration: FastAPI supports non-streaming calls plus token- and message-level streaming; each agent also has an AG-UI endpoint.
Conversation UI: Streamlit includes voice input and output and a Previous Chats sidebar backed by /threads; star ratings integrate with LangSmith.
Model and retrieval options: External model APIs and local inference via Ollama, vLLM, or SGLang; ChromaDB retrieval uses the optional rag extra.
Operational verification: Opt-in smoke tests exercise PostgreSQL and MongoDB checkpointers, AG-UI, and LangFuse; backend checks guard against silent SQLite fallback.
Best For

Teams building a self-hosted LangGraph assistant that want to validate graph behavior, streaming, conversation history, and a working chat UI before investing in a custom frontend.

Skip If

You need a turnkey managed product, or your existing platform already provides the API, identity, persistence, and UI layers and only needs a graph runtime.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedAPI
# At least one LLM API key is required
echo 'OPENAI_API_KEY=your_openai_api_key' >> .env

# uv is the recommended way to install agent-service-toolkit, but "pip install ." also works
# For uv installation options, see: https://docs.astral.sh/uv/getting-started/installation/
curl -LsSf https://astral.sh/uv/0.13.5/install.sh | sh

# Install dependencies. "uv sync" creates .venv automatically
uv sync --frozen
source .venv/bin/activate
python src/run_service.py

# In another shell
source .venv/bin/activate
streamlit run src/streamlit_app.py

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
agent-service-toolkit ★4.6k+11PythonMITSelf-host LangGraph agents with a FastAPI service and a Streamlit chat UI
deer-flow86.1k+257PythonMITSelf-hosted LangGraph agent runtime for long-running research, coding, and conte
hermes-agent268.1k+1.5kPythonMITSelf-hosted Python agent with persistent memory and automation across chat and C
daily_stock_analysis75.9k+896PythonMITA Python Agent workbench for multi-market watchlist research and scheduled repor

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/JoshuaC215/agent-service-toolkit.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

JoshuaC215/agent-service-toolkit Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about agent-service-toolkit

How do I expose a custom LangGraph agent to a separate frontend?

Define the graph under src/agents/ and register it in the agents dictionary in src/agents/agents.py. Discover agents and models through /info, then use the agent-specific invoke or stream endpoint. For a separate frontend, use AgentClient for Python integration or connect an AG-UI-compatible client to the agent's AG-UI endpoint.

Does self-hosting require a GPU, and what should I size for?

Not for the toolkit itself when inference is handled by an external model API. Size the Python API, Streamlit app, and database for concurrent requests, open streams, and retained conversation state. With Ollama, vLLM, or SGLang, size the inference host separately for the chosen model and concurrency. There is no toolkit-wide VRAM minimum in the supplied configuration.

Can I self-host this commercially under the MIT license?

Yes. The MIT license permits commercial use and redistribution, subject to retaining the copyright and license notices in copies or substantial portions. It does not cover model licenses, hosted API terms, or your data-handling obligations. Self-hosting the service also does not keep prompts or traces local if you enable external model or tracing services.

When should I use this instead of integrating LangGraph directly or choosing a managed platform?

Use the toolkit when you want a working API, client, and chat UI that exercise the same agent workflows, and you are willing to maintain those components together. Start with a bare LangGraph integration when your existing platform already handles identity, persistence, and frontend delivery. Prefer a managed agent platform when reducing infrastructure ownership matters more than controlling the service and UI code.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining JoshuaC215/agent-service-toolkit? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature JoshuaC215/agent-service-toolkit on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare