alphaclaw: Instructions file for Codex

AGENTS.md

alphaclaw AGENTS.md is an instructions file for Codex, OpenCode from chrysb/alphaclaw. It costs 3,874 tokens per session, scanned A, original, MIT.

A project guide for AlphaClaw, the setup and operations layer around OpenClaw. It describes the project structure, how its server manages OpenClaw, and its main integrations and technologies.

In plain words
What is it for?
Use it when working on AlphaClaw's command-line entry point, server, setup interface, watchdog recovery, gateway proxying, or channel integrations.
Why use it?
It gives the coding agent the background needed to navigate an unfamiliar project and understand how its parts fit together.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex; built for openclaw.

This is chrysb/alphaclaw's own configuration. It tells Codex and OpenCode how to work on alphaclaw itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything alphaclaw configures →

About the project

AlphaClaw is a browser-based management layer for OpenClaw, an AI-agent gateway, that guides setup and monitors running agents. It helps users configure multiple agents, manage integrations, recover gateway failures, and observe activity from one dashboard.

chrysb/alphaclaw · 1,479 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to chrysb/alphaclaw. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chrysb/alphaclaw/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/chrysb/alphaclaw

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alphaclaw AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chrysb/alphaclaw/agents-md/github.svg)](https://agentmods.dev/instructions/chrysb/alphaclaw/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/chrysb/alphaclaw/agents-md"><img src="https://agentmods.dev/badge/instructions/chrysb/alphaclaw/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alphaclaw AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chrysb/alphaclaw/agents-md"><img src="https://agentmods.dev/badge/instructions/chrysb/alphaclaw/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,874 This file is loaded in full into every session.
When invoked 3,874 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03874 $0.03874
Opus 5.5 $0.01550 $0.01550
Sonnet 5.5 $0.00775 $0.00775
Haiku 4.5 $0.00387 $0.00387

Measured 1mo ago against content hash 98439e040e66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

alphaclaw AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 236 lines

How it starts

The opening of the file, as written. The whole thing — 236 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Overview

AlphaClaw Project Context

AlphaClaw is the ops and setup layer around OpenClaw. It provides a browser-based setup UI, gateway lifecycle management, watchdog recovery flows, and integrations (for example Telegram, Discord, Google Workspace, and webhooks) so users can operate OpenClaw without manual server intervention.

Understanding OpenClaw

If you need to understand the internals of OpenClaw, you can inspect the code at ~/Projects/openclaw/src

Architecture At A Glance

  • bin/alphaclaw.js: CLI entrypoint and lifecycle command surface.
  • lib/server: Express server, authenticated setup APIs, watchdog APIs, channel integrations, and proxying to the OpenClaw gateway.
  • lib/public: Setup UI frontend (component-driven tabs and flows for providers, envars, watchdog, webhooks, and onboarding).
  • lib/setup: Prompt hardening templates and setup-related assets injected into agent/system behavior.

Runtime model:

  1. AlphaClaw server starts and manages OpenClaw as a child process.
  2. Setup UI calls AlphaClaw APIs for configuration and operations.
  3. AlphaClaw proxies gateway traffic and handles watchdog monitoring/repair.

Key Technologies

  • Node.js 26.1+ runtime (or a supported Node 24.16+ release).
  • Express-based HTTP API server.
  • http-proxy for gateway proxy behavior.
  • OpenClaw CLI/gateway process orchestration.
  • Preact + htm frontend patterns for Setup UI components.
  • Vitest + Supertest for server and route testing.

Coding Conventions

Change Patterns

  • Keep edits targeted and production-safe; favor small, reviewable changes.
  • Preserve existing behavior unless the task explicitly requires behavior changes.
  • Follow existing UI conventions and shared components for consistency.
  • Reuse existing server route and state patterns before introducing new abstractions.
  • Update tests when behavior changes in routes, watchdog flows, or setup state.
  • Before running tests in a fresh checkout, run npm install so vitest (devDependency) is available for npm test.

Read the full file on GitHub · 236 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -17 tokens per session 98439e040e66
  2. 2mo ago First seen · 236 lines · 3,891 tokens per session scan A b4fdcdb78855

Subscribe to this mod's changes

alphaclaw AGENTS.md is an instructions file published in the GitHub repository chrysb/alphaclaw (1,479 stars, last pushed 14d ago), licensed MIT. It adds 3,874 tokens to every session, about $0.0155 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

alphaclaw AGENTS.md compared with instructions from other repositories

alphaclaw AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
alphaclaw AGENTS.mdchrysb/alphaclawInstructions file1.5k14d agoMITA3,874Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode