Vibeleaderboard
Index / tool

ClawShell

clawshell.org
Visit clawshell.org
Category
Cybersecurity
Rank
No. 1459Tools index
Pricing
Open Source
Type
TOOL
Use case
Security & Identity
Interfaces
CLI
Builder
@clawshell
GitHub
348 stars
Latest release
v0.2.1
Date

About

ClawShell provides Linux-style permissions for AI agent secrets, treating agent execution as adversarial compute to protect sensitive data. It's a security layer designed specifically for AI agents written in Rust.

What it does

ClawShell runs as a privileged local proxy between OpenClaw or Hermes Agent and model providers. Agents present virtual credentials; the proxy resolves them, inserts provider authentication, and forwards traffic. Configurable patterns can block or redact sensitive request data. It can also filter IMAP email by sender and manage OAuth authentication.

Why it's ranked here

The design addresses a concrete agent risk with an understandable boundary and useful operational controls. Credential substitution, request filtering, email isolation, persistent counters, and loopback-only statistics fit together coherently. The strongest caveat is streaming traffic: server-sent event responses bypass response scanning and token counting.

What's good

Real provider credentials and IMAP passwords stay outside the downstream agent configuration. Pattern rules support distinct blocking and redaction policies, including custom regular expressions. The proxy handles provider-specific authentication headers, disables upstream redirects, filters connection headers, and caps request bodies. Setup, migration, logs, status, restart, and uninstall are exposed through one command-line tool.

Tradeoffs

The security model depends on correct host permissions, privileged setup, and a separate system user. Sensitive-data detection is regular-expression based, so coverage and false positives depend on operator rules. Response protection is optional, buffers non-streaming bodies, and excludes server-sent events. Email support uses IMAP and sender rules, not content classification. Onboarding configures only one downstream agent per run.

How to use it well

Use it for a locally operated OpenClaw or Hermes Agent deployment where model credentials, outbound sensitive data, or restricted mailbox access deserve an explicit boundary. Start with narrowly tested redaction rules, enable response scanning when buffering is acceptable, and monitor local counters. It does not replace a general secrets manager, identity provider, or broad email security system.

Technical notes+

Cargo.toml defines a Rust 2024 binary with Axum, Tokio, Reqwest, Rustls, Clap, regex, and dedicated test dependencies. src/app.rs builds catch-all proxy routing plus /v1/email/messages, /v1/email/messages/{id}, and /admin/stats, with a 10 MiB body limit. src/keys.rs resolves bearer virtual keys to static or OAuth sources. src/dlp.rs applies byte-regex block and redact actions and contains unit tests. src/proxy.rs strips original authentication and hop-by-hop headers, injects provider credentials, disables redirects, streams SSE unchanged, and buffers other responses. src/email.rs implements TLS IMAP access and sender policy enforcement. src/cli.rs exposes lifecycle, configuration, migration, onboarding, uninstall, logging, and version commands. src/main.rs denies warnings, unsafe code, and missing debug implementations.

Observed

License
Apache 2.0, identified by the README badge and package license file declaration.
Primary language
Rust, using the 2024 edition.
Packaging
Installable through Cargo or the global npm package @clawshell/clawshell, with source builds documented.
Interfaces
Command-line daemon, HTTP reverse proxy, secure email HTTP endpoints, and a local administrative statistics endpoint.
Agent integrations
The onboarding workflow targets OpenClaw or Hermes Agent, exactly one per run.
Provider support
Repository code configures OpenAI, Anthropic, OpenRouter, MiniMax, and OpenCode upstreams.
Platform orientation
Unix-oriented privileged installation, with Linux arm64 cross-compilation documented.
Test structure
Unit tests are embedded in supplied Rust modules, and Cargo declares integration-testing dependencies.

Read from README.md, Cargo.toml, src/app.rs, src/cli.rs, src/main.rs, src/dlp.rs, src/tui.rs, src/keys.rs, src/email.rs, src/proxy.rs.

What it can do

  • Apply Linux-style permissions to AI agent secrets

    AI agent secrets and permission rules → Protected secrets with enforced access controls

  • Isolate AI agent execution environments

    AI agent code and execution requests → Sandboxed execution environment

  • Monitor AI agent access to sensitive data

    AI agent data access attempts → Security audit logs and access reports

  • Block unauthorized secret access by AI agents

    AI agent secret access requests → Allowed or denied access decisions

  • Manage security policies for AI agent operations

    Security policy configurations → Enforced security rules and restrictions

  • Treat AI agent compute as adversarial workload

    AI agent computational requests → Security-hardened execution environment

Tags

aisecurityrustlinuxpermissionsagentssecrets

Tech Stack

Rust

Media

ClawShell

Comments (0)

No comments yet

Editorially curated, with community endorsements as a secondary signal. Corrections welcome.