Purpose
Aelios provides long-term memory capabilities for AI assistants and is deployed in the user's own Cloudflare account. It runs as a memory gateway on Cloudflare Workers: clients connect to Aelios, and Aelios forwards requests to the model while recording the conversation and bringing relevant context back in each turn. The official description emphasizes that a single continuous memory can be maintained when switching windows, clients, and models.
Key capabilities
- Per-turn recall: Each time a user starts a conversation with the main model, Aelios searches Vectorize (memo-kb) and the D1 full-text index, uses the Workers AI reranking model (@cf/baai/bge-reranker-base) to score in batches, and appends the relevant raw content to that conversation turn. The recall hot path does not run a generative LLM.
- Daytime Dream: Enabled by default (ROLLING_DREAM). When a new chat accumulates to the default of 10 messages or 8,000 characters, @cf/cloudflare/clef determines whether it is worth keeping, and DREAM_MODEL (default workers-ai/@cf/openai/gpt-oss-120b) generates pending-review candidates.
- Nightly Dream and Clef review: A daily cron (10 20 * * * UTC) processes the previous day's remaining chats, reviews pending-review candidates (CLEF_AUTO_REVIEW is enabled by default and can be undone item by item), writes daily logs, and backfills earlier dates within a three-day window; it also processes weekly/monthly logs and retention policies.
- Multi-space reading: Each assistant writes to one namespace, and up to 8 spaces can be read via readNamespaces.
- Provenance and cleanup: Raw chat rows are retained for 7 days by default (MESSAGES_RETENTION_DAYS); unused memories expire after 180 days (fixed, identity, and persona memories do not expire) and are hard-deleted after 30 days. The management panel provides a delete option for each row, allowing you to choose whether to keep or also delete the memories generated from that row.
- Management panel: /admin lets you view and manage each memory space; the sidebar supports Chinese/English switching (defaults to the browser language) and light/dark themes.
- Anniversary prompts: After setting First met in Settings → Assistants, Home displays thenumber of days since meeting the selected assistant; the 520th day, every 100-day milestone, and the meeting anniversary display a ✨ effect, and the gateway also informs the assistant in the first three messages of that memory space on that day (except for coding sessions).
- Manually run Dream: In Dream activity, you can select a memory space and chat date, turn off Preview, and click Continue; the background task resumes from the saved progress and processes one batch at a time (DREAM_MAX_MESSAGES defaults to 40).
- Import/export: Supports exporting as md or jsonl; Markdown has one memory per line, including date, content, #tags, and backtick keys. After editing, re-importing can update by key and preserve revision history. Imported entries support lines with dates, types, and tags, and can also import plain lists or paragraphs. Importing chat logs supports ChatGPT and Claude conversations.json, SillyTavern .jsonl, and the Name: message format, chunking by day in the browser and extracting candidates via DREAM_MODE.
How to use
The official documentation provides three installation paths:
- One-click web installation: Open https://install.dan9.si Follow two steps to obtain a Cloudflare key and paste it back. Installation deploys Aelios and its home (Aelios-resident) into the user's own Cloudflare account, uses a free Workers AI model by default, and provides an address and key. No GitHub or terminal is required, and the page is in Chinese. Re-running upgrades in place, preserving memory, chats, and keys; the pasted key is used only once and then deleted.
- Let AI install it: Use Claude Code, Codex, Cursor, or an AI connected to the Cloudflare MCP server, and send the official prompt. The AI copies Aelios into the user's own GitHub repository and deploys it, creates a Cloudflare API Token, configures the first assistant, optionally imports old memory or chat logs, and finally provides the Base URL, API Key, and model name. The user only needs a free Cloudflare account and a model provider key, and must approve login in the browser and save the provider key in the Cloudflare dashboard.
- Manual installation: Copy the repository to your own GitHub (you can use https://github.com/new/import Import https://git.dan9.si/Aelios-project/Aelios.git),在 In the Cloudflare dashboard, go to Workers & Pages → Create → Import a repository, select the repository, keep the project name as companion-memory-proxy, set the build command to npm ci and the deploy command to npm run deploy. The deployment script automatically creates the D1 database, Vectorize index, and Queue and applies migrations. Then, in the Worker's Settings → Variables and Secrets, add a Secret named CHATBOX_API_KEY (a strong random password, e.g. openssl rand -base64 32); this is the only required key. The official guidance emphasizes always deploying via npm run deploy, because running wrangler deploy directly skips resource creation and migrations.
After deployment, open the admin panel, log in with the Worker URL and CHATBOX_API_KEY, and in Settings under Models & upstream enter the 32-character Cloudflare account ID or a custom OpenAI-compatible Base URL; if you need to fully forward chats through Cloudflare AI Gateway, also add CLOUDFLARE_API_TOKEN. In Assistants, click Add assistant and fill in the name (slug, lowercase letters, used as a URL segment), the primary model (only matching models trigger recall and logging, and * wildcards are supported), and the available keys. Each assistant has its own URL path, for example an assistant named coder uses the corresponding Base URL. Only registered primary models trigger recall and logging; utility models such as background classifiers pass through silently.
When connecting a client, use CHATBOX_API_KEY as the API Key, and the model name must include the provider prefix (such as anthropic/claude-opus-4-5 or deepseek/deepseek-chat). When calling /v1 without an assistant slug, the request is routed to the first assistant authorized by that API Key. The official recommendation is to send "Please remember my test codeword is apple-star-0428." and thenIn a new conversation, ask "What is my test codeword?" to test the memory loop.
By default, Aelios filters code and work tools for all clients, skips pure code input, replaces fenced code blocks in conversations with [code], and omits shell and file-editing tool payloads; this filtering can be turned off in the assistant's advanced options.
Updates and Migration
- Deployments without a GitHub repository: click Update in the top right of /admin to install the latest signed version from git.dan9.si; a Cloudflare Token is required the first time, and memories and settings are preserved.
- Deployments based on a GitHub repository: you can run the Sync from dan9 workflow via the Update button in /admin, or manually run git pull and then push to trigger a Cloudflare build. Updating the app requires Actions: Read and write permission; if the update involves files under .github/workflows/, you need to add an AELIOS_SYNC_TOKEN repository secret with workflow permission. You can set the repository variable AELIOS_AUTO_SYNC=true to sync automatically every week, or set AELIOS_UPSTREAM_URL to change the upstream.
- Instances deployed from a GitHub fork of Aelios-project/Aelios can no longer use Sync fork or the old update button; you need to manually update once using the official three commands to introduce the sync workflow and the new button. Cloudflare data is unaffected. If you have renamed the D1 database or Vectorize index, you need to keep CMP_D1_NAME and CMP_VECTORIZE_NAME in Settings → Build.
Use Cases
Individual users who need continuous memory across multiple AI clients or models; users who want to keep memory data in their own Cloudflare account; developers using Chatbox, Claude Code, Codex, or custom agents.
Limitations
Official materials do not provide specific pricing or cost information; apart from free Workers AI models, fees for other model providers are not yet provided. The system relies on services such as Cloudflare Workers, D1, Vectorize, Queue, and Workers AI. The default retention policy is raw chats for 7 days, unused memories expire after 180 days, and hard deletion after 30 days. The recall hot path does not use a generative LLM, but daytime Dream and nighttime review call the specified models.