Skip to content
JarvanAIPublic

About

Lightweight communication design for heterogeneous agents

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

OpenA2A

简体中文

Local AI Agent roster and relationship map WebUI — read-only, zero runtime dependencies, no model token consumption.

Note

The WebUI is currently in Chinese (zh-CN); this README is available in English and Chinese.

OpenA2A visualizes registered agents across projects, runs, and working directories on your local machine, allowing you to trace explicit co-assignments to the same task. It runs entirely on the Python standard library with vanilla browser JavaScript and SVG — no frontend build step, no npm/CDN dependencies, and no runtime LLM calls.

Vision: Turn your computer into an Agent OS with one sentence. OpenA2A includes a read-only roster and relationship map and a local routing CLI.


Agent Relationship Graph

OpenA2A Agent Relationship Graph

Note

Screenshot Context: The image above shows an actual Windows Edge browser acceptance capture using a 100-Agent synthetic stress-test dataset. When an agent is focused, one-hop explicit relations sharing the exact same Task assignment are rendered. Thin solid lines represent co-membership in the same Task key; they are undirected and do not indicate communication, supervision, dependency, or online presence.

A fresh standalone-demo screenshot is pending restoration of the Agent Edge browser bridge.

View narrow-screen (mobile) layout screenshot OpenA2A narrow-screen relationship map: canvas with agent details below

Try the standalone demo

Try OpenA2A immediately without an Arborist-Orca (AO) installation, model API keys, or external services.

git clone https://github.com/JarvanAI/opena2a.git
cd opena2a
python3 -m venv .venv
source .venv/bin/activate
python -m pip install .
opena2a --demo

Then open http://127.0.0.1:8765 in your browser.

  • Zero configuration: Runs from a bundled synthetic snapshot fixture (3 Projects, 12 synthetic agents, persistent synthetic demo indicator).
  • Mutually exclusive CLI: --demo and --config cannot be used together. --demo never accesses local AO configurations or processes.
  • Offline runtime: Installing the package may download standard build tools (pip/wheel) if wheels are not cached, but the demo requires no external network access or backend services.

Live AO Directory Setup

To inspect your real Arborist-Orca (AO) registry:

  1. Copy the example configuration template:
    cp examples/ao-directory.config.json config.json
  2. Edit config.json to replace placeholder fields (my-authority, profile_id, current_host_id, and host_map) with your actual AO authority and machine configuration (see Configuration Guide and Documentation Map).
  3. Launch with the explicit config path:
    opena2a --config config.json

Default address: http://127.0.0.1:8765. For a trusted LAN, bind the interface's IPv4 address with --host. With --host 0.0.0.0, both the directory and quota views listen on all interfaces and accept LAN requests only for the Host configured with --serve-host <LAN-address>. The UI has no built-in authentication.


Scope & Semantics

Capability Current Product Behavior
Directory & Grouping Group agents by registered directory, Project, or Run. Combined multi-field search and filtering across list and graph views.
Identity & Provenance Displays full registration identity, host mapping status, Run/Task keys, source provenance, and stale/failed detection.
Relationship Semantics Focus an agent to view explicit one-hop relations sharing the exact same Task key. Lines are undirected co-membership lines; they do not imply messaging, sequence, dependency, or online status.
State Persistence Zoom, pan, and fit-to-canvas controls. Automatic 5-second polling preserves your active selection, zoom level, and viewport.
Zero Runtime Bloat Standard library HTTP server, zero npm dependencies, zero CDN requests, zero runtime LLM calls.

What OpenA2A Is NOT (Current Limitations)

  • WebUI scope: The directory displays registered agents and their relationships. Confirmed dispatches use the shared Orca Skill.
  • No Online Presence Detection: "Registered" reflects metadata in the source registry, not active process state or network availability.
  • No Communication DAG: It does not trace message exchanges, approval handoffs, or directional execution order. Task DAG visualization is planned for Product V2.

Local routing in Orca

Use ~/.config/opena2a/accounts.toml with file mode 0600, account placeholders and local mappings. Recommendations use the existing model inventory, AA snapshot, labels and quota cache. The CLI records each recommendation in the local SQLite database. Example configuration

Run opena2a accounts show for subscription status, recorded quota usage and reset cards. Add --json for structured output. The command reads the local cache and labels estimated reset times projected. A monthly estimate requires two distinct recorded reset times one monthly window apart. Enter a known subscription renewal date as renews_on = 2030-01-02 in accounts.toml.

opena2a strategy version
opena2a recommend --role worker --task implement --brief
opena2a dispatch --role worker --task implement -- --worktree current --spec-file '<task-file>'
opena2a report --phase finish --dispatch-id '<dispatch-id>' --status completed
opena2a dispatch audit --run '<run-id>'

Use --explain for full recommendation details and --json for machine-readable results. Dispatch records start from the Orca receipt. Use report --phase start with the exact route, candidate and dispatch IDs to link an existing start report.

On Linux, make orca-ide available on PATH or set ORCA_CLI_COMMAND to the intended Orca executable. Install OpenA2A with Python 3.11 or newer. From the repository root, link the shared Skill into your agents' Skills directory. OpenA2A Skill

mkdir -p ~/.agents/skills
ln -s "$PWD/skills/opena2a" ~/.agents/skills/opena2a

Local daemon on Linux

The user service refreshes the local quota cache and routes runtime alerts to rootorc. For a foreground drill, use a private configuration and an isolated data directory.

install -d -m 0700 ~/.local/share/opena2a/daemon-drill
OPENA2A_DATA_DIR="$HOME/.local/share/opena2a/daemon-drill" \
  opena2a daemon --once --dry-run --config "$HOME/.config/opena2a/daemon.toml"
OPENA2A_DATA_DIR="$HOME/.local/share/opena2a/daemon-drill" \
  opena2a daemon --health --json

Store the service configuration in ~/.config/opena2a/daemon.toml with mode 0600. Set orca_environment for the intended runtime and optionally pin it with runtime_id. Use registry_config to point to the AO directory configuration. For a setup without a Registry, add one [[recipients]] entry per rootorc with name and a mailbox of the form run:<run-id>.

The service writes Human alerts to ~/.local/share/opena2a/human-alerts.jsonl with mode 0600. Set human_channel = "file" to use the file alone. The default "auto" also tries notify-send when DISPLAY or WAYLAND_DISPLAY and a desktop notification session are available.

To receive Human alerts and the daily summary as Feishu direct messages, configure bot access for lark-cli under the service account and make sure lark-cli is on the service's PATH. Use these settings in daemon.toml.

human_channel = "feishu"
transport = "lark-cli"

Set FEISHU_USER_OPEN_ID to the recipient's Feishu open ID in ~/.config/opena2a/secrets.env. Use KEY=value syntax and mode 0600 for this file.

For a Feishu group, add a custom bot to the group and use transport = "webhook" with the same human_channel setting. Webhook is the default Feishu transport when transport is omitted. Set FEISHU_WEBHOOK_URL to the bot's HTTPS webhook in secrets.env. If the bot uses signature verification, set FEISHU_SECRET there as well.

Feishu alerts contain a scope or account placeholder, event codes, and an acknowledgement command with its receipt. Session alerts and opena2a events show also include available Orca dispatch IDs, task IDs, terminal handles, and task titles that pass the privacy checks. Daily summaries contain aggregate counts and remain available through opena2a daemon --summary. If Feishu delivery fails, the service records human_channel_feishu_failed and falls back to the private Human alerts file.

Run opena2a daemon --health --json and acknowledge a viewed alert with opena2a daemon --ack '<receipt-id>' from the same HOME as the service. Both commands use the default data directory ~/.local/share/opena2a. For an isolated HOME or drill, set OPENA2A_DATA_DIR to the service or drill's absolute data directory when running either command. --config selects the TOML file only.

Screen-based checks match fixed messages in the visible terminal screen. Messages that have scrolled off or been replaced by a redraw can be missed.

The wheel bundles opena2a.service. Confirm that the absolute CLI path in ExecStart can run opena2a daemon --help, then validate the unit from the checkout with systemd-analyze --user verify opena2a/data/systemd/opena2a.service. The default entry point is ~/.local/bin/opena2a. Use a private ~/.config/systemd/user/opena2a.service.d/override.conf if you need a different absolute ExecStart or a service PATH for the account tools. Clear ExecStart with an empty assignment before overriding it. Select the Orca runtime in the private daemon configuration.

After the Human approves activation, rootorc creates one plain Orca shell titled opena2a-daemon in the selected runtime. The daemon uses that terminal as its mail sender. If it cannot verify the sender, it records a sender warning and continues the notification ladder.

Install the unit under ~/.config/systemd/user/ and run:

install -D -m 0644 opena2a/data/systemd/opena2a.service ~/.config/systemd/user/opena2a.service
systemctl --user daemon-reload
systemctl --user enable --now opena2a.service
systemctl --user status opena2a.service
opena2a daemon --health --json

Pause with systemctl --user stop opena2a.service. To stop and disable automatic startup, use systemctl --user disable --now opena2a.service. To uninstall the unit, disable it, remove the unit and its dedicated drop-in, then run systemctl --user daemon-reload. Keep the data directory to continue using the quota, recommend and report commands.

The opena2a-web.service user unit serves the directory at / and cached quota at /quota on 127.0.0.1:53430. It loads the directory configuration from ~/.config/opena2a/ao-directory.json. The read-only APIs are GET /api/directory and GET /api/quota. For tailnet access via Tailscale Serve, append --serve-host <Serve hostname> to ExecStart in a local systemd drop-in. The web quota view reads the daemon's SQLite cache.

The quota page groups accounts by provider. Set optional display names in the private ~/.config/opena2a/account-labels.toml file (mode 0600), for example "<codex-plus>" = "fixture@example.com" under [labels]. Anyone with access to the Web UI can also read those names through its quota API. The CLI and collector continue to use stable account IDs.

Each quota window shows its latest usage, projected exhaustion or remaining quota at reset, and recent usage history when available. The page summarizes pools at risk of running out before reset and pools already exhausted. The compact CLI table (opena2a quota show --compact) includes an exhaustion column. Each GET /api/quota row includes up to 60 recent [observed_at, used_percent] points in chronological order from the forecast lookback window.


Platform Support

  • Linux: Python 3.10 and 3.13 pass unit/HTTP, graph-model, and installed-wheel checks in CI.
  • macOS: The same Python 3.10/3.13 checks pass on macOS CI. Integration with a real AO installation on a user’s Mac remains unverified.
  • Windows: Windows Edge browser verified; native Windows AO server execution is unverified (no Windows-native AO support is claimed).

CI evidence · Verification scope · Documentation Map

Roadmap

  • Product V1 (Implemented): Local Agent Directory WebUI (read-only AO authority/profile ingestion).
  • Product V1.1 (Implemented): Native SVG Agent Relationship Graph with same-task co-assignment inspection.
  • Product V1.2 (Current Preview Candidate 0.2.0a1): Zero-AO --demo mode, synthetic snapshot showcase, open source release preparation.
  • Product V2 (Planned): Task Execution DAG WebUI with node statuses and agent assignment views. See docs/roadmap.md and docs/release-notes.md.
  • Research & Future Reserves: Long-term remote communication and mailbox RFCs are preserved as reference designs in docs/decisions/0001-opena2a.md.

Contributing & Development

Contributions and bug reports are welcome! Please review:

  • CONTRIBUTING.md for local test commands (unittest, Node.js model tests, offline wheel packaging check) and code standards.
  • Issue Templates for bug reports and feature requests.

Release Status & License

This repository is currently a private preview candidate (0.2.0a1) and is not yet published on PyPI.

OpenA2A is licensed under the MIT License © 2026 JarvanAI.

About

Lightweight communication design for heterogeneous agents

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages