claude-mem
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
zylos-ai/zylos-core is a plugin that gives Claude Code agents a persistent runtime, shipping skills such as activity-monitor, check-context, comm-bridge, component-management and create-skill. It suits anyone who wants an agent to keep running, monitor its own state and communicate across external channels.
Claude Code
$ npx -y skills add zylos-ai/zylos-core --agent claude-code
Codex
$ npx skills add zylos-ai/zylos-core -a codex
Cursor
$ npx skills add zylos-ai/zylos-core -a cursor
Gemini CLI
$ npx skills add zylos-ai/zylos-core -a gemini-cli
GitHub Copilot
$ npx skills add zylos-ai/zylos-core -a github-copilot
OpenCode
$ npx skills add zylos-ai/zylos-core -a opencode
Windsurf
$ npx skills add zylos-ai/zylos-core -a windsurf



Zylos (/ˈzaɪ.lɒs/ 赛洛丝) — Give your AI a life
LLMs 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 gives it a life. Memory that survives restarts. A scheduler that works while you sleep. Communication through Telegram, Lark, or a web console. Self-maintenance that keeps everything running. And because it can program, it can evolve — building new skills, integrating new services, growing alongside you.
Supports Claude Code (Anthropic) and Codex (OpenAI). Fully compatible with the OpenClaw ecosystem.
Prerequisites: A Linux server (or Mac), a Claude subscription (or OpenAI Codex as an alternative runtime — Codex CLI v0.129.0+ required, 0.146+ recommended).
Zylos-managed Codex sessions use --no-daemon when the installed CLI advertises it, isolating startup from shared background-server settings. Older CLIs without this option keep their existing launch behavior. This does not change the shared daemon or your standalone Codex configuration.
curl -fsSL https://raw.githubusercontent.com/zylos-ai/zylos-core/main/scripts/install.sh | bash
This installs everything you need (git, tmux, Node.js, zylos CLI) and automatically runs zylos init to set up your agent.
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 \
--web-password MySecurePass123
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 or codex | claude |
--setup-token <token> | Claude setup token (starts with sk-ant-oat) | — |
--api-key <key> | Anthropic API key (starts with sk-ant-) | — |
--codex-api-key <key> | OpenAI API key for Codex runtime (starts with sk-) | — |
--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 |
--web-password <pass> | Web console password | Auto-generated |
Environment variables:
Flags can also be set via environment variables during zylos init. Resolution order: CLI flag > env var > existing .env > interactive prompt.
| Environment Variable | Equivalent Flag |
|---|---|
ZYLOS_RUNTIME | --runtime |
CLAUDE_CODE_OAUTH_TOKEN | --setup-token |
ANTHROPIC_API_KEY | --api-key |
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 |
ZYLOS_WEB_PASSWORD | --web-password |
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.
Install from a specific branch (for testing)
curl -fsSL https://raw.githubusercontent.com/zylos-ai/zylos-core/main/scripts/install.sh | bash -s -- --branch <branch-name>
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 \
-e CLAUDE_CODE_OAUTH_TOKEN=YOUR_TOKEN_HERE \
-p 3456:3456 \
-v zylos-data:/home/zylos/zylos \
-v claude-config:/home/zylos/.claude \
ghcr.io/zylos-ai/zylos-core:latest
Open http://localhost:3456 to access the web console. Find your password with docker logs zylos | grep -A2 "Web Console". See the Docker Deployment Guide for Docker Compose setup, environment variables, Synology NAS instructions, and more.
Unsupported platforms (Windows, NAS, etc.) — install via SSH
On platforms without native support, use Claude Code's SSH feature to install Zylos on a remote Linux/macOS machine:
# From your local machine (any OS that runs Claude Code)
claude --ssh user@your-linux-server
Once connected, Claude is running on the remote machine. Ask it to install Zylos:
> Install Zylos on this machine
Or run the installer directly in the SSH session:
curl -fsSL https://raw.githubusercontent.com/zylos-ai/zylos-core/main/scripts/install.sh | bash
This works from Windows, ChromeOS, or any platform that can run Claude Code locally. The AI handles the setup on the remote server — no need for native platform support.
Node.js requirement: Zylos requires Node.js 20 or later. We recommend installing via nvm — the install script does this automatically. If you manage Node.js yourself, make sure to use a single, stable version and avoid switching versions after installation, as globally installed npm packages (including Zylos) are tied to the Node.js version that installed them.
# Recommended: let the install script handle it, or install manually via nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash nvm install 24 nvm alias default 24
zylos init is idempotent and supports both interactive and non-interactive modes. It will:
~/zylos/ directory with memory, skills, and servicesTalk to your agent:
# Interactive CLI — the simplest way to chat
zylos shell
# Or attach to the Claude tmux session (Ctrl+B d to detach)
zylos attach
# Or add a messaging channel
zylos add telegram
zylos add lark
graph TB
subgraph Channels["📡 Communication Channels"]
TG["Telegram"]
LK["Lark"]
WC["Web Console"]
end
subgraph Zylos["🧬 Zylos — The Life System"]
C4["C4 Comm Bridge<br/>(unified gateway · SQLite audit)"]
MEM["Memory<br/>(Inside Out architecture)"]
SCH["Scheduler<br/>(autonomous task dispatch)"]
AM["Activity Monitor<br/>(guardian · heartbeat · auto-recovery)"]
HTTP["HTTP Layer<br/>(Caddy · file sharing · HTTPS)"]
end
subgraph Brain["🧠 AI Runtime — The Brain"]
CC["Claude Code / Codex<br/>(in tmux session)"]
end
TG & LK & WC --> C4
C4 <--> CC
MEM <--> CC
SCH --> CC
AM --> CC
HTTP <--> CC
| Component | Role | Key Tech |
|---|---|---|
| C4 Comm Bridge | Unified message gateway with audit trail | SQLite, priority queue |
| Memory | Persistent identity and context across restarts | Inside Out tiered architecture |
| Scheduler | Autonomous task dispatch while you are away | Cron, NL input, idle-gating |
| Activity Monitor | Crash recovery, heartbeat, health checks | PM2, multi-layer protection |
| HTTP Layer | Web access, file sharing, component routes | Caddy, auto-HTTPS |
Most agent frameworks isolate sessions per channel — your AI on Telegram doesn't know what you said on Slack. Zylos is agent-centric: your AI is one person across every channel. The C4 communication bridge routes all messages through a single gateway — one conversation, one memory, one personality. Every message persisted to SQLite and fully queryable.


Other frameworks lose your AI's memory during context compaction — silently, without warning. Zylos prevents this with a two-step safeguard: when context reaches 75%, the system automatically saves all memory before compaction runs. Five-layer Inside Out memory (identity → state → references → sessions → archive) ensures the AI always knows what to keep and what to compress. Your AI never wakes up with amnesia.

No third-party monitoring tools needed. Zylos includes native crash recovery, heartbeat liveness probes, health monitoring, context window management, and automatic upgrades — all built in. Your AI detects its own problems and fixes them. It stays alive while you sleep.
See 12 zylos-core alternatives
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
Gives Claude Code long-term memory through Hindsight. It recalls relevant past context before answering, retains durable facts as the agent learns them, and reflects over stored memory.
Local-first memory for Claude Code. It stores conversations verbatim in a private palace you can search before answering about past work, people, projects, or decisions, with optional shared-brain hub setup.
Gives Claude Code a private memory that stays on your machine. It stores past conversations word for word, so you can ask what was decided, what happened before, or who was involved and get the original context back. It can also hand tasks to other agents.
Install it with the command on its page. It includes activity-monitor, check-context, comm-bridge. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it