Help us shape the future of Go! Take the 2026 Go Developer Survey

crabwise

module
v0.1.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: AGPL-3.0

README

Crabwise

Crabwise / The local control plane for your AI agents

Observe, govern, and audit what Claude Code, Codex CLI, and OpenClaw do on your machine.

License Release Platforms X

Quick Start · Releases · Docs (coming soon)

Crabwise is a local-first daemon plus CLI for monitoring, audit, and policy enforcement around AI agents. It watches agent activity, can proxy provider traffic for enforcement, stores a hash-chained audit trail in SQLite, and keeps the control plane on your machine instead of sending it to a hosted service.

Built for solo developers, builders, and OpenClaw users. Current support is focused on Claude Code, Codex CLI, and OpenClaw-aware workflows.

Write Commandments that agents cannot break.

Crabwise Features

  • See what your agents are doing in real time
  • Enforce local policies before risky actions or provider calls go through
  • Get Desktop or Discord notifications when an agent is blocked
  • Keep audit history and operational visibility on your own machine
  • Route local agents through a single control point with crabwise wrap
  • crabwise service inject service level agents like OpenClaw
  • Inspect status, activity, policies, and history from fast terminal UIs

Quick Start

Install Crabwise:

curl -sSfL https://raw.githubusercontent.com/crabwise-ai/crabwise/main/install.sh | bash

Initialize config and generate the local CA:

crabwise init
crabwise cert trust --copy

Start the daemon:

crabwise start

Launch an agent through Crabwise:

crabwise wrap -- codex
# or
crabwise wrap -- claude
# or
crabwise wrap -- openclaw gateway

In another terminal:

crabwise status
crabwise agents
crabwise watch
crabwise audit

Stop the daemon when you are done:

crabwise stop

How Requests Flow

How Crabwise Works

Crabwise sits between the wrapped agent and the model provider. Requests and responses flow through the local proxy, policies are evaluated locally, and audit history stays on your machine.

Main Features

Local-first audit trail

Crabwise records normalized agent and proxy events in a local SQLite database with hash chaining, so you can inspect activity and verify integrity without depending on a remote service.

Policy enforcement

Crabwise can evaluate requests before they reach the model provider and evaluate supported tool-use payloads before they reach the agent. Policies are defined in YAML and support both warn and block outcomes.

Fast terminal workflows

The CLI is built for day-to-day use:

  • crabwise status for daemon and proxy health
  • crabwise agents for discovered agent sessions
  • crabwise watch for live activity
  • crabwise audit for historical events
  • crabwise commandments list for active policies

Works with builders

Use crabwise wrap -- <command> to route a local agent, script, or tool runner through Crabwise without permanently changing your shell environment.

OpenClaw support

When enabled, Crabwise connects to a local OpenClaw Gateway and correlates activity with OpenClaw sessions. Current enforcement is focused on provider-side governance through the Crabwise proxy.

Notes

  • The proxy uses a local CA certificate to inspect HTTPS traffic.
  • Crabwise is usable now, but still a pragmatic v1 focused on Claude Code, Codex CLI, wrapped local agents, and OpenClaw-aware workflows.
  • A dedicated documentation site will cover the full command reference, flags, configuration, and deeper operational details.

Development

make build
make test

License

Licensed under AGPL-3.0. See LICENSE.

Directories

Path Synopsis
cmd
crabwise command
internal
cli
ipc
otel
Package crabwiseotel provides OpenTelemetry integration for Crabwise.
Package crabwiseotel provides OpenTelemetry integration for Crabwise.
tui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL