An open-source framework for production AI agents.
Project description
An open-source framework for production AI agents.
Defined in markdown. Deployed inside your perimeter. The substrate behind Hubzoid customer deployments.
hubzoid reads AGENTS.md, agents/, skills/, and knowledge/ from a folder
and turns it into a running AI agent. Backed by the OpenAI Agents
SDK or the Claude Agent
SDK, served over an
OpenAI-compatible HTTP API, and chattable through a bundled
Open WebUI front end.
You write the markdown. hubzoid handles the runtime, the API, the UI, the streaming, and the sub-agent routing. Provider-agnostic via LiteLLM: OpenRouter, OpenAI, Anthropic, and local Claude work out of the box.
Quickstart
3 steps if you have claude CLI installed and logged in, 4 otherwise.
Python 3.11 or 3.12 (Open WebUI does not yet support 3.13+). On recent macOS, the default
python3is too new; create your venv withpython3.12 -m venvexplicitly. If pip tries to buildav(PyAV) from source, runbrew install pkg-config ffmpegfirst.
pip install hubzoid
hubzoid init my-hub # minimal runnable hub + agents-repo wrapper
* edit my-hub/.env # ← optional. skip if using claude-local.
hubzoid run my-hub
Open http://localhost:3080. You get a generic assistant with one example
of every Hubzoid surface (one skill, one knowledge file, one sub-agent, one
custom tool) so the folder layout is obvious. Edit my-hub/AGENTS.md to
make it yours.
Want the guided tour instead? Add --template demo to get a Hubzoid
Guide agent that explains the framework as you chat:
hubzoid init my-hub --template demo
hubzoid run my-hub
* Step 3 (the optional one). Default MODEL=claude-local uses your
installed claude CLI subscription. If you already ran claude login,
skip this step and go straight to hubzoid run. Otherwise, open
demo-hub/.env, comment out the MODEL=claude-local line, and uncomment
one of the provider stanzas (OpenRouter, OpenAI, Anthropic) with your key
pasted in.
The two files you edit later as you customize:
demo-hub/.env: keys, model selection, UI knobs.demo-hub/AGENTS.md: the system prompt body. YAML frontmatter setsname,description, and optionalmodel.
How it works
┌─────────────────────────────┐
│ Open WebUI │ http://localhost:3080
│ (web chat, white-label) │
└──────────────┬──────────────┘
│ OpenAI-compatible HTTP
┌──────────────┴──────────────┐
│ FastAPI bridge │ /v1/chat/completions /v1/models
└──────────────┬──────────────┘
│ in-process
┌──────────────┴──────────────┐
│ Agent runtime │ OpenAI Agents SDK | Claude Agent SDK
└──────────────┬──────────────┘
│ LiteLLM (or claude CLI subprocess)
┌──────────────┴──────────────┐
│ Your model │ OpenRouter · OpenAI · Anthropic · claude-local
└─────────────────────────────┘
One install command. Open WebUI, the Claude Agent SDK, the OpenAI Agents SDK, LiteLLM, and FastAPI are all bundled as required dependencies. No optional extras for the runtime.
A minimal AGENTS.md
---
name: code-reviewer
description: Reviews a code diff. Ranks the top three issues by severity.
model: openrouter/anthropic/claude-haiku-4.5
---
You review code. When the user pastes a diff or a file, identify the top
three issues ranked by severity: correctness first, then security, then
readability.
For each issue, cite the line number and explain the fix in one sentence.
Skip style nits unless the user asks for them. If the code looks clean,
say so in one line and stop.
That is the whole hub. One file. No sub-agents, no skills, no knowledge
needed. Drop it in a folder, run hubzoid run ., and you have a code
reviewer at http://localhost:3080.
Editing your hub
Your hub is one folder. Six things to know.
- Pick your model. Default
.envusesMODEL=claude-local(no key needed ifclaude loginis done). To switch to OpenRouter / OpenAI / Anthropic, uncomment a stanza in.envand paste a key. - Write the main agent. Open
AGENTS.md. The body is the system prompt. YAML frontmatter setsname,description, optionalmodel, and optionalsuggestions:(a list of quick-start prompts shown as buttons on the empty chat screen). - Sub-agents. One folder per sub-agent under
agents/. Each has its ownAGENTS.md. Frontmattertools: [...]whitelists which tools the sub-agent may call. - Skills. One folder per playbook under
skills/, each with aSKILL.md. The main agent loads them on demand viaload_skill(name). - Knowledge. One markdown file per topic under
knowledge/. Reached viaread_knowledge(name). - Tools and connectors. Drop Python files with
@function_toolintools_local/. Editconnectors/.mcp.jsonto plug in MCP servers. - Unstructured data. Drop code repos, document dumps, or any source
material into
raw_data/. The agent searches it withgrep_dataand reads specific files withread_file. No indexing step — the folder ships with the hub. - Scheduled tasks. One markdown file per background job under
schedule/. Frontmatter sets the cron cadence (plus what the run may commit/push); the body is plain-English instructions the hub's own agent executes unattended, in bounded rounds, whilehubzoid runis up — e.g. "every Monday, fold last week'sraw_data/commits intoknowledge/". Works on any backend (claude-local or OpenAI/LiteLLM). See docs/schedule.md.
Folder names are case- and plural-flexible. skills/, Skills/, and
skill/ all work. Same for agents/, knowledge/, tools_local/,
connectors/, raw_data/, schedule/. Restart with the same command.
Changes are picked up on the next start.
Multi-hub agents repo
Run hubzoid init more than once in the same directory and you get a
Samarth-style multi-hub layout with one parent requirements.txt:
mkdir my-agents && cd my-agents
hubzoid init devops-agent # creates ./devops-agent + ./requirements.txt + ./.gitignore + ./README.md
hubzoid init support-agent # creates ./support-agent only; parent files left alone
hubzoid init research-agent # creates ./research-agent only
Each hub is independent: its own .env, its own port, its own user
database. The parent files are written only on the first init in a
fresh directory (empty or containing only dotfiles / README /
requirements.txt / LICENSE). Idempotent and non-destructive afterward.
Providers
Pick one stanza in .env. See docs/providers.md for
more detail.
# OpenRouter (one key, many models)
OPENROUTER_API_KEY=sk-or-v1-...
MODEL=openrouter/anthropic/claude-haiku-4.5
# OR OpenAI
OPENAI_API_KEY=sk-...
MODEL=openai/gpt-4o-mini
# OR Anthropic
ANTHROPIC_API_KEY=sk-ant-...
MODEL=anthropic/claude-haiku-4-5
# OR Claude local (uses your installed `claude` CLI + Pro/Max subscription)
# Requires `claude login` first. No API key needed.
MODEL=claude-local # defaults to Haiku 4.5 (~3x faster TTFT than Sonnet)
# MODEL=claude-local/sonnet # opt in to Sonnet
# MODEL=claude-local/opus # opt in to Opus
# MODEL=claude-local/haiku # explicit; same as bare `claude-local`
The MODEL string tells LiteLLM which provider to call, and the matching
key must be set. The exception is MODEL=claude-local: instead of
LiteLLM, hubzoid drives the Claude Agent SDK against your locally
installed claude CLI, so auth and billing flow through your existing
Pro/Max subscription. Same hub folder, same tools, same skills. Only the
LLM and auth path differ.
Latency note on claude-local. Requests go through the Claude Code
CLI, which adds ~1-2s per turn of harness overhead. If latency matters
more than subscription billing, use anthropic/... or
openrouter/anthropic/... with an API key — same models, no harness.
OpenRouter tip. If using openrouter/anthropic/*, pin Anthropic as the
preferred provider at openrouter.ai/settings/preferences
(with fallbacks allowed). Hubzoid uses Anthropic prompt caching for ~70%
input-cost savings on multi-turn chats, but each upstream (Anthropic,
Vertex, Bedrock) has a separate cache pool, so cross-provider routing
fragments cache hits.
Pre-shipped tools
Every hub gets these tools for free.
| Tool | What it does |
|---|---|
read_file(path) |
Read a file under the hub directory. |
list_files(glob) |
List files matching a glob. |
write_artifact(filename, content) |
Write a file under output/<session>/. |
list_skills() |
Menu of skills in the hub. |
load_skill(name) |
Read a skill's full body on demand. |
list_knowledge() |
Menu of knowledge documents. |
read_knowledge(name) |
Read a knowledge document's full body. |
render_jinja(template, context_json) |
Render a Jinja2 template. |
http_get(url) |
Fetch a URL (honors HTTP_ALLOWLIST, disable with HUBZOID_DISABLE_HTTP_GET=true). |
web_search(query) |
DuckDuckGo search. No API key. Disable with HUBZOID_DISABLE_WEB_SEARCH=true. |
current_time(zone) |
ISO 8601 timestamp in the given IANA timezone (default UTC). |
Custom tools dropped into tools_local/*.py are auto-discovered.
MCP connectors
MCP connectors are per-hub. Each hub has its own
<hub>/connectors/.mcp.json alongside its AGENTS.md. Two hubs in the
same agents-repo connect to completely different MCP servers because each
loads its own config independently. There is no parent-level shared MCP
file by design: agents are independent products with their own scope.
Edit demo-hub/connectors/.mcp.json (or whatever your hub is named):
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["@modelcontextprotocol/server-filesystem", "./workspace"]
},
"github": {
"command": "npx",
"args": ["@modelcontextprotocol/server-github"],
"env": {"GITHUB_PERSONAL_ACCESS_TOKEN": "${GH_TOKEN}"}
}
}
}
${VAR} references in any string field resolve against the environment at
boot. The same .mcp.json is honored by both the OpenAI Agents and
Claude Agent runtimes.
Branding and UI
Hubzoid passes ~24 env vars to Open WebUI to strip platform surfaces
(community sharing, code interpreter, multi-model arena, etc.) so the UI
reads as a single product. All flags are overridable from .env.
Per-hub identity has three knobs:
| Surface | Source |
|---|---|
| Top-bar name + tab title | WEBUI_NAME in .env (cascades to agent name, then "Hubzoid") |
| Logo, favicon, splash | Drop files in <hub>/branding/ (case-insensitive, multi-extension) |
| Quick-start prompts on the empty chat screen | suggestions: field in AGENTS.md frontmatter |
Full reference, including the override list for all 24 OWUI flags: docs/branding.md.
Authentication
Default is single-user with no login - one user, localhost, no friction. For
multi-user or production, set WEBUI_AUTH=true and pick email + password or
an SSO provider: Google, Microsoft, GitHub, generic OIDC (Okta, Auth0,
Keycloak), or LDAP. Each agent runs its own user database, so adding a user
to one agent does not grant access to the others.
Full walkthrough including the Google Cloud Console click-path and the env vars for every provider: docs/auth.md.
Deploying to production
hubzoid run is the production entry point. Wrap it in systemd (or a container) and put a reverse proxy in front for TLS. Only the one Open WebUI port needs to be exposed — the built-in edge router serves artifact downloads (/artifacts) off the loopback bridge through that same port, so set HUBZOID_PUBLIC_URL=https://your.host in <hub>/.env and download links just work. Running a hub per team on one box? hubzoid gateway puts them behind a single Open WebUI. Full walkthrough: docs/DEPLOYING.md.
Slack chat surface
Run any hub as a Slack bot. Users @mention it in a channel, DM it, or
chat from Slack's AI-assistant sidebar — same agent, same skills, same
knowledge, same .env. Uses Socket Mode, so no public URL or inbound
firewall changes are required.
hubzoid slack manifest my-hub > /tmp/manifest.json # paste into api.slack.com
# drop SLACK_BOT_TOKEN and SLACK_APP_TOKEN into my-hub/.env, then one of:
hubzoid run my-hub --slack # inline with the bridge + UI (one terminal)
hubzoid slack run my-hub # or as a separate process (prod / systemd)
Full walkthrough (manifest, install, tokens, updating an existing app, production systemd unit, troubleshooting): docs/slack.md.
CLI
hubzoid init [NAME] Scaffold a new hub folder under the current directory.
NAME defaults to "demo-hub".
Also drops requirements.txt / .gitignore / README.md
at the parent on first run if the directory looks fresh.
--template, -t NAME Which bundled template. "minimal" (default) =
tiny runnable hub. "demo" = full guided tour
with the Hubzoid Guide agent.
hubzoid run [PATH] Start the FastAPI bridge plus Open WebUI for a hub.
An edge router binds the public port and serves
/artifacts off the bridge, so download links work
behind one exposed port (set HUBZOID_DISABLE_EDGE=1
to opt out).
--port INT Public Open WebUI port (default 3080).
--bridge-port INT FastAPI bridge port (default 8000, loopback).
--no-ui Bridge only, no Open WebUI / edge.
--slack, -s Also start the Slack adapter inline.
Soft-warns if SLACK_BOT_TOKEN / SLACK_APP_TOKEN
are missing; bridge + UI still come up.
hubzoid gateway [HUBS...] One shared Open WebUI fronting many hub bridges
(one --no-ui bridge per hub; each is a selectable
model). Lighter than one `run` per hub; gate access
with Open WebUI Groups. See docs/DEPLOYING.md.
--port INT Public port (default 3080).
--public-url URL Base URL for per-hub artifact download links.
--no-bridges Front bridges already running as separate units.
hubzoid schedule list [PATH] List the hub's scheduled tasks + next fire times.
hubzoid schedule run PATH TASK Fire one task NOW, in-process — for testing and
manual runs. Exit 0 = the agent reported DONE.
--timeout INT Override the task's per-round timeout (seconds).
--max-rounds INT Override the task's round cap.
--dry-run Print the exact round-1 prompt; no LLM call.
hubzoid schedule status [PATH] Show recorded fire history per task.
Tasks fire automatically inside `hubzoid run`;
see docs/schedule.md.
hubzoid doctor [PATH] Validate hub config and report issues.
hubzoid test [PATH] Send one prompt to the agent and print the response.
hubzoid slack run [PATH] Run the hub as a Slack bot (Socket Mode). See docs/slack.md.
hubzoid slack manifest [PATH] Print a Slack App Manifest (JSON by default).
hubzoid slack systemd [PATH] Print a systemd unit for the Slack adapter.
hubzoid version
hubzoid --help
PATH defaults to . for run / doctor / test. python -m hubzoid ... also
works as an alternative invocation.
Run from source
For contributors or anyone who wants to read or extend the framework code.
git clone https://github.com/hubzoid/hubzoid.git
cd hubzoid
python -m venv .venv && source .venv/bin/activate
pip install -e '.[dev]'
hubzoid run demo-hub
The repo ships with demo-hub/ at the root as a working starter. Its
.env is git-ignored but the template includes sensible defaults
(MODEL=claude-local).
Open standards
| Spec | Used at |
|---|---|
| AGENTS.md | <hub>/AGENTS.md, <hub>/agents/<n>/AGENTS.md |
| SKILL.md | <hub>/skills/<n>/SKILL.md |
| MCP | <hub>/connectors/.mcp.json |
Hubs are portable across any tool that adopts these specs (Claude Code, Cursor, Codex, Copilot, Gemini CLI, VS Code).
Roadmap
- v0.2 Current. PyPI release with bundled Open WebUI + Claude Agent SDK; OpenAI Agents and Claude Agent runtimes; AGENTS.md, SKILL.md, MCP loaders; OpenRouter, OpenAI, Anthropic, claude-local providers.
- v0.3 Per-hub branding, auth-on path, native-venv production deployment docs, Playwright UI test tier.
- v0.4 Slack chat surface (shipped —
hubzoid slack run, see docs/slack.md). Background and scheduled workflows via WaveAssist Cloud (separate product, opt-in). - Later Telegram chat surface. Mem0 / Zep memory backends.
Non-goals: voice and realtime, visual agent builder.
Hubzoid as a service
This is the open-source framework. hubzoid.com is the consulting practice that deploys role-scoped hubs for mid-enterprise organizations in six weeks, fixed scope, fixed price. The framework is the substrate; the practice ships the deployment.
Contributing
See CONTRIBUTING.md. Issues and PRs welcome.
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hubzoid-0.6.0.tar.gz.
File metadata
- Download URL: hubzoid-0.6.0.tar.gz
- Upload date:
- Size: 255.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bfcafe05af1b077f007a41604c9acf084799785f727253dd2ae907cae1f3358
|
|
| MD5 |
b49c64fcc3f99dcaca32c60f98668f14
|
|
| BLAKE2b-256 |
d0b87557ff84f6f3f84b0adc2448e8dfefd8d6ae32e537271132b32aefbf631e
|
Provenance
The following attestation bundles were made for hubzoid-0.6.0.tar.gz:
Publisher:
ci.yml on hubzoid/hubzoid
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hubzoid-0.6.0.tar.gz -
Subject digest:
1bfcafe05af1b077f007a41604c9acf084799785f727253dd2ae907cae1f3358 - Sigstore transparency entry: 1783799170
- Sigstore integration time:
-
Permalink:
hubzoid/hubzoid@7698b927dd3f8e3ed72b74e23428c54e974b313b -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/hubzoid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7698b927dd3f8e3ed72b74e23428c54e974b313b -
Trigger Event:
release
-
Statement type:
File details
Details for the file hubzoid-0.6.0-py3-none-any.whl.
File metadata
- Download URL: hubzoid-0.6.0-py3-none-any.whl
- Upload date:
- Size: 220.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc606238c0c9879fca83ef8a839e4f7ae317bae73e156817b5a787c23c4bb517
|
|
| MD5 |
e1ae055bbce4afa3ab75f54f940224b9
|
|
| BLAKE2b-256 |
65a85ef82abea32be8393d958e5085205d40e3cc6f1da1787c9ca0128366502b
|
Provenance
The following attestation bundles were made for hubzoid-0.6.0-py3-none-any.whl:
Publisher:
ci.yml on hubzoid/hubzoid
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hubzoid-0.6.0-py3-none-any.whl -
Subject digest:
dc606238c0c9879fca83ef8a839e4f7ae317bae73e156817b5a787c23c4bb517 - Sigstore transparency entry: 1783801401
- Sigstore integration time:
-
Permalink:
hubzoid/hubzoid@7698b927dd3f8e3ed72b74e23428c54e974b313b -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/hubzoid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7698b927dd3f8e3ed72b74e23428c54e974b313b -
Trigger Event:
release
-
Statement type: