zylos-ai/zylos-core
Sobre
🐙 Dê vida à sua IA — infraestrutura de agentes de código aberto para colaboração em equipe.
Sistemas e infraestruturaCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- +2
- em 15 dias
- +7
- em 1 mês
- +9
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalLLMs are geniuses, but they wake up with amnesia every session: no memory of yesterday, no way to reach you, no ability to act on their own.
Zylos (/ˈzaɪ.lɒs/) gives your AI a life. It runs Claude Code, Codex or Antigravity on your own Linux server or Mac around the clock and adds what a chat window lacks: memory that lasts, a schedule, the chat apps you already use, and a guardian that keeps it running. And because it can program, it keeps growing: it writes new skills and connects new services as you need them.
Why Zylos
Not just a chat session. Seven things that happen with Zylos and not in a chat window:
- Remembers what you tell it. Instead of forgetting you when the session ends, it keeps your preferences, people and ongoing work in Markdown files on your server that you can read and edit.
- Works on a schedule. Reminders, daily briefings and recurring checks run on time, even when nobody is talking to it.
- Many conversations at once. In multi-session mode (the default for new installs), every DM, group, forum topic and Dashboard conversation moves forward at the same time: one agent, one memory.
- Long tasks keep their thread. Before the context window fills up, it saves its working notes and carries on in a fresh session.
- Switch AI, keep everything. Claude Code, Codex or Antigravity: switch with one command and keep memory, skills and channels.
- Recovers by itself. When something goes wrong, it restarts and picks up unfinished work.
- Wherever you are. Reach it from the browser, your phone, Telegram, Lark, WeChat, Slack and more.
Nothing new to pay for: it runs on the Claude or ChatGPT plan you already have, its memory stays on your machine, and it is open source under MIT. We use it ourselves: the OpenMax team works with Zylos agents every day.
Quick Start
You need a Linux server or Mac, and a Claude or ChatGPT plan (or an Anthropic, OpenAI or Gemini API key).
curl -fsSL https://raw.githubusercontent.com/zylos-ai/zylos-core/main/scripts/install.sh | bash
The script installs what is missing (git, tmux, Node.js, the zylos CLI) and runs zylos init, which signs in your AI runtime, starts the services and prints your Dashboard address.
Talk to your agent:
# Open the Dashboard address printed by init and use its Origin conversation.
# Forgot the password? Print a new one:
zylos dashboard reset-password
# Or chat in the terminal
zylos shell
# Or add a chat app (zylos search lists them all)
zylos add telegram
Upgrading from 0.9.x? Follow the upgrade steps first.
Requirements and what init does
Prerequisites: a Linux server or Mac, and a Claude subscription, OpenAI Codex (Codex CLI v0.129.0+, 0.146+ recommended) or Antigravity with a Gemini API key. The installer adds tmux, git and Node.js 20+ (through nvm) only when they are missing. Zylos needs tmux 3.2a or later, and the installer does not upgrade a tmux that is already installed. On macOS it installs tmux and git with Homebrew, so install Homebrew first if they are missing. Keep one Node.js version after installation: global npm packages, Zylos included, belong to the Node.js version that installed them.
Antigravity: set GEMINI_API_KEY, enter it during interactive zylos init, or save it with zylos runtime agy --save-apikey <key>. For Google subscription login, see Antigravity authentication.
zylos init is idempotent and supports both interactive and non-interactive modes. It will:
- Install missing tools (tmux, git, PM2, Claude Code or Codex; the Antigravity CLI when you choose
agy) - Set up authentication (Claude: browser login, API key, Bearer token, or setup token; Codex: OpenAI API key, or ChatGPT login in the browser or with a device code; Antigravity: Gemini API key)
- Create the
~/zylos/directory with memory, skills, and services - Start all background services and launch your AI agent in a tmux session
zylos attach attaches to the agent tmux session (Ctrl+B d to detach).
Non-interactive install (Docker, CI/CD, headless servers)
All zylos init flags can be passed directly through the install script. The script installs dependencies, then runs zylos init with the flags you provide.
Full example:
curl -fsSL https://raw.githubusercontent.com/zylos-ai/zylos-core/main/scripts/install.sh | bash -s -- \
-y \
--setup-token sk-ant-oat01-xxx \
--timezone Asia/Shanghai \
--domain agent.example.com \
--https \
--caddy
When is non-interactive mode active?
Automatically when no TTY is available — e.g. Docker containers (without -it), CI runners, or cron jobs. Also when CI=true or NONINTERACTIVE=1 is set. Note: curl | bash in a terminal is still interactive (the install script redirects from /dev/tty). Use -y to force non-interactive in a terminal.
Flags:
| Flag | Description | Default |
|---|---|---|
-y, --yes |
Force non-interactive mode (skip all prompts) | Auto-detected |
-q, --quiet |
Minimal output | Off |
--runtime <name> |
AI runtime: claude, codex or agy (Antigravity) |
claude |
--setup-token <token> |
Claude setup token (starts with sk-ant-oat) |
— |
--api-key <key> |
Claude credential sent in x-api-key; official Anthropic keys start with sk-ant- |
— |
--auth-token <token> |
Claude credential sent as Authorization: Bearer |
— |
--codex-api-key <key> |
API key for Codex, including keys accepted by a compatible custom endpoint | — |
--base-url <url> |
Custom API base URL for Claude Code | — |
--codex-base-url <url> |
Custom API base URL for Codex | — |
--timezone <tz> |
IANA timezone, e.g. Asia/Shanghai, America/New_York, Europe/London |
System default |
--domain <domain> |
Domain for Caddy reverse proxy, e.g. agent.example.com |
None |
--https / --no-https |
Enable or disable HTTPS | --https when domain is set |
--caddy / --no-caddy |
Install or skip Caddy web server | Install |
--session-mode <mode> |
single or multi for a new install; an installed instance keeps its saved mode (change it with zylos session-mode switch <mode>) |
multi |
Environment variables:
Flags can also be set via environment variables during zylos init. Resolution order: CLI flag > env var > existing .env > interactive prompt. Claude credential exception: environment variables do not override credentials already in .env.
| Environment Variable | Equivalent Flag |
|---|---|
ZYLOS_RUNTIME |
--runtime |
CLAUDE_CODE_OAUTH_TOKEN |
--setup-token |
ANTHROPIC_API_KEY |
--api-key |
ANTHROPIC_AUTH_TOKEN |
--auth-token |
ANTHROPIC_BASE_URL |
--base-url |
OPENAI_API_KEY |
--codex-api-key |
OPENAI_BASE_URL |
--codex-base-url |
ZYLOS_DOMAIN |
--domain |
ZYLOS_PROTOCOL (https or http) |
--https / --no-https |
Custom API endpoints: --api-key sends the Claude credential as x-api-key and --auth-token sends it as Authorization: Bearer; use the one your provider requires, never both. Set the address with --base-url (Claude) or --codex-base-url (Codex).
# Bearer-authenticated Anthropic-compatible endpoint; placeholders only.
ANTHROPIC_BASE_URL=https://relay.example.com \
ANTHROPIC_AUTH_TOKEN=... zylos init -y --runtime claude
Prefer environment variables on shared machines, because credential flags are visible in process listings. How init verifies and saves these credentials: Custom API endpoints.
CI, Kubernetes, and shared E2E environments should also provide GITHUB_TOKEN
so zylos add and zylos upgrade use GitHub's authenticated API quota instead
of the shared unauthenticated quota. See the
GitHub authentication operations guide for
configuration examples and fallback behavior.
Exit codes: 0 = success, 1 = fatal error (e.g. invalid token), 2 = partial success (e.g. Caddy download failed but everything else succeeded).
Install without running init
curl -fsSL https://raw.githubusercontent.com/zylos-ai/zylos-core/main/scripts/install.sh | bash -s -- --no-init
Installs dependencies and the zylos CLI, but skips zylos init. Run zylos init separately when ready.
Manual install (if you already have Node.js >= 20)
Choose the latest stable release from Releases,
excluding releases marked Pre-release. Replace vX.Y.Z below with that release's tag.
npm install -g --install-links 'https://github.com/zylos-ai/zylos-core#vX.Y.Z'
zylos init
Docker deployment
docker run -d --name zylos \
--init --restart unless-stopped \
-p 3470:3470 \
-v zylos-home:/home/zylos \
ghcr.io/zylos-ai/zylos-core:latest
docker logs -f zylos
The image automatically installs the latest stable Zylos into the home volume. Later starts restore the saved PM2 services. For optional first-time authentication, add -e CLAUDE_CODE_OAUTH_TOKEN or -e ANTHROPIC_API_KEY before the image name to pass a variable from your shell. You can also authenticate after installation with docker exec -it zylos zylos init.
Open http://localhost:3470/ for Dashboard. Set its password with docker exec -it zylos zylos dashboard reset-password. Upgrade from inside the running container with docker exec -it zylos zylos upgrade --self. See the Docker Deployment Guide for Compose, authentication, image updates, and bind mounts.
Upgrading an existing installation
Upgrade with zylos upgrade --self. Coming from 0.9.x? Follow the steps below first.
From 0.9.x to 1.0
- If the standalone Dashboard component is installed (
zylos list), runzylos uninstall dashboard --yesfirst. Its data is retained and taken over by the Dashboard in Core. - Upgrade Core:
- 0.9.4, 0.9.5 or 0.9.6:
zylos upgrade --self --version 1.0.0(a plainzylos upgrade --selfstays within 0.x). - 0.9.3:
zylos upgrade --self. - 0.9.2 or older:
zylos upgrade --self --branch release/0.9.3(needs a CLI that supports--self --branch, 0.1.6 or later), check thatzylos --versionreports 0.9.3, then upgrade as above.
- 0.9.4, 0.9.5 or 0.9.6:
- Do not restart the old session yourself; the system closes it and switches
the instance to multi-session. To keep a single session, wait until
zylos session-mode statusshowsSession mode: multiandTransition: none, then runzylos session-mode switch single.
See the 1.0.0 changelog for everything that changes.
Installed 1.0 with npm directly? Finish the setup
Use zylos upgrade --self for upgrades, not npm install -g: a direct npm install updates the package but does not finish service, dependency or data setup. If you already installed this way, run zylos init, then check that zylos status shows scheduler, c4-dispatcher, activity-monitor and zylos-dashboard online (caddy is optional) and that the Dashboard login page loads. Do this even if npm showed no notice; the full checklist is in the 1.0.0 changelog.
See protected self-upgrade and recovery for supported source versions, installation protection, retained material, recovery commands, and limits.
How It Works
Every message enters through the C4 bridge, which routes it to the session of its conversation and records it. The activity monitor starts that session on demand, watches it and reclaims it when idle; the scheduler hands it timed work; all sessions read and write the same memory.
Reference
The full user guide is at zylos.ai/docs: runtimes, configuration, sessions, channels and troubleshooting.
CLI
Everyday commands.
Commands
zylos init # Set up Zylos environment
zylos attach # Attach to the agent tmux session
zylos runtime <name> # Switch AI runtime (claude, codex or agy)
zylos doctor # Diagnose and auto-repair installation
zylos status # Check running services
zylos logs [service] # View service logs
zylos add <component> # Install a channel or capability
zylos upgrade <component> # Upgrade a component
zylos upgrade --all --yes # Upgrade every component (--json for one result)
zylos upgrade --self # Upgrade zylos-core itself
zylos recovery status # Inspect file-only self-upgrade recovery
zylos upgrade --self --beta # Check for beta/prerelease versions
zylos uninstall --self # Uninstall zylos entirely
zylos list # List installed components
zylos search [keyword] # Search component registry
zylos upstream status --resolved # Inspect upstream configuration without networking
zylos upstream refresh # Refresh the selected remote profile now
More for operators
- Install and upgrade components from any Git server (GitLab, self-hosted, SSH): Git component sources.
- Route Core's GitHub requests through your own mirrors: Upstream routing.
Custom channels and OpenClaw
A platform without an official component can connect through the C4 protocol, a simple HTTP interface, and gets the same sessions, audit trail and memory as every other channel. Zylos also works with the OpenClaw ecosystem: ask your agent and it can install and use most OpenClaw skills and plugins.
Uninstall
zylos uninstall --self
This stops all services, removes the zylos npm package, deletes ~/zylos/ and cleans shell PATH entries, then offers to remove PM2 and the Claude CLI (--force skips the prompts and these optional steps). Node.js and nvm are not touched.
Built by OpenMax
Zylos was created by Howard Zhou (zz-howard), who leads the OpenMax team that keeps developing it. OpenMax is the Human × Agent Collaboration Platform for AI-Native teams.
One Zylos is an assistant; a group of Zylos is a team. In OpenMax Workspace, Zylos agents join your team as members: assign them work, give them knowledge bases and connectors, collaborate in your team's chat tools, and have people sign off on what they deliver.
License
Explore projetos relacionados
Carregando…
