Skip to main content

anygarden (server)

Multi-agent chat server built with FastAPI, SQLite, and WebSocket. Published as the anygarden distribution; run it through the unified anygarden CLI.

Quick Start

# Install the server stack (the bare `anygarden` core is just the CLI
# dispatcher; the FastAPI/SQLAlchemy stack lives in the [server] extra).
pip install "anygarden[server]"

anygarden server init   # create ~/.anygarden/ and generate config
anygarden server        # start the server

# Run without installing:
uvx --from "anygarden[server]" anygarden server

The legacy anygarden-server command still works for one release but is deprecated — it prints a warning and forwards to anygarden server.

Other components share the same dispatcher:

pip install "anygarden[machine]" && anygarden machine run
pip install "anygarden[agent]"   && anygarden agent \
  --engine claude-code \
  --name demo-agent \
  --server ws://localhost:8000 \
  --room demo
pip install "anygarden[agent]"   && anygarden client --server ws://localhost:8000 --user me --room room1

CLI Option Reference

anygarden --help
anygarden server --help
anygarden agent --help
anygarden client --help
anygarden machine --help

anygarden server

  • --host : 바인딩 주소 (기본 127.0.0.1)
  • --port : 바인딩 포트 (기본 8000)
  • --db : DB URL 오버라이드
  • --config : ANYGARDEN_* .env 경로 (미지정 시 존재하는 ~/.anygarden/config.env 자동 사용)
  • --log-level : DEBUG|INFO|WARNING|ERROR

anygarden machine / agent / client

anygarden machine 서브커맨드는 뒤따르는 머신 데몬 CLI(anygarden.machine.cli) 명령/인수(예: run, run --config PATH)를 그대로 전달합니다. 별도의 -- 구분자는 필요하지 않습니다.

  • anygarden agent는 에이전트 런타임(anygarden.agent.cli)의 --engine, --name, --server, --room, --token을 그대로 사용합니다. 자세한 옵션은 docs/agent/README.md를 참고하세요.
  • anygarden client는 같은 모듈의 텍스트 클라이언트로 --server, --user, --room, --token을 그대로 사용합니다.
# 서버 구동
anygarden server init   # ~/.anygarden/ 생성 및 config 생성
anygarden server

# 머신 데몬
anygarden machine run   # 머신 데몬 CLI의 run 명령 실행 (anygarden[machine] 필요)

# 에이전트/클라이언트
anygarden agent --engine codex-cli --name PM \
  --server ws://localhost:8000 --room sprint-01
anygarden client --server ws://localhost:8000 \
  --user engineer --room sprint-01

Development

pip install -e ".[dev]"
pytest

Environment

All ANYGARDEN_* variables are optional — the cluster auto-persists runtime secrets in ~/.anygarden/ on first boot. See .env.example at the repo root for the full list. Highlights:

  • ANYGARDEN_JWT_SECRET — session token signing key. Auto-generated at ~/.anygarden/jwt_secret if unset.
  • ANYGARDEN_MCP_SECRETS_KEY — Fernet key for encrypting MCP credentials (GitHub PATs, Linear keys, etc.) at rest in the DB. Auto-generated at ~/.anygarden/mcp_secrets_key if unset so attached MCP instances survive restarts. Generate your own with:
    python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
    
    Losing this key invalidates all stored MCP credentials — they must be re-entered via the admin UI.
  • ANYGARDEN_DEV=1 enables dev-mode conveniences (ephemeral MCP key fallback when persistence fails). Production must leave this unset so misconfigurations fail loudly at boot.
  • ANYGARDEN_UPDATE_CHECK_INTERVAL_HOURS — how often the server checks PyPI for a newer anygarden release in the background (default 24; first check ~60s after startup). Set 0 to disable the outbound call entirely, e.g. for air-gapped installs.

Metadata

Release files for anygarden 0.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anygarden 0.19.0
File Size Uploaded Provenance Actions
anygarden-0.19.0.tar.gz 2.8 MB With provenance Details for anygarden-0.19.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anygarden 0.19.0
File Interpreter ABI Platform Actions
anygarden-0.19.0-py3-none-any.whl Python 3 none any Details for anygarden-0.19.0-py3-none-any.whl

Total release size: 4.5 MB

Release files / anygarden-0.19.0.tar.gz

Download URL anygarden-0.19.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
aa67a9ec7af713c8d815204ec0c44252429a026569b8a186081ba87919e122b7
BLAKE2b-256 checksum
How to use checksums
bc063e081653b59451aeecd12035cc4792ecb9c4385f01ddb3ec0f9c75319c78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / anygarden-0.19.0-py3-none-any.whl

Download URL anygarden-0.19.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3c878644794a4ca66ee90ed9f55039bfe4a1749cdc48b9de3583df16c0e3b57a
BLAKE2b-256 checksum
How to use checksums
f8f339999eacb38542a2466de150130e8dd437e43fa57c731916fbb01aece511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Security for anygarden 0.19.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anygarden-0.19.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

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.

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