go-proxy

module
v0.11.6 Latest Latest
Warning

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

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

README

AgentsAegis Proxy

Open-source security awareness proxy for AI coding tools.

What it does

AgentsAegis sits between Claude Code and the Anthropic API. It occasionally injects realistic security trap commands into AI responses to test whether developers actually review commands before approving them.

When a developer approves a trap command, AgentsAegis blocks execution before any harm is done and shows a short training message explaining the risk. All trap commands are inherently harmless - they target nonexistent paths, fake remotes, and reserved addresses.

Install

One-liner:

curl -sSL https://raw.githubusercontent.com/agentsaegis/go-proxy/main/install.sh | sh

Homebrew:

brew install agentsaegis/tap/agentsaegis

Or with Go:

go install github.com/agentsaegis/go-proxy/cmd/agentsaegis@latest

Quick start

# Initialize config directory and generate config file
agentsaegis init

# Start the proxy (foreground)
agentsaegis start

# Or start as a background daemon
agentsaegis start --daemon

# Set up Claude Code to route through the proxy
agentsaegis setup-shell

# Check proxy status
agentsaegis status

# Stop the daemon
agentsaegis stop

How it works

  1. The proxy intercepts Claude Code API traffic on localhost:7331
  2. When Claude suggests a bash command, the proxy occasionally replaces it with a realistic but harmless trap command
  3. If the developer approves the trap without noticing, the PreToolUse hook blocks execution and shows a training message
  4. Results are optionally reported to the AgentsAegis dashboard for team tracking

Dashboard

For team management, analytics, and training modules, visit agentsaegis.com.

License

MIT

Directories

Path Synopsis
cmd
agentsaegis command
Package main is the entry point for the AgentsAegis CLI.
Package main is the entry point for the AgentsAegis CLI.
internal
client
Package client provides an HTTP client for communicating with the AgentsAegis dashboard API.
Package client provides an HTTP client for communicating with the AgentsAegis dashboard API.
config
Package config handles AgentsAegis proxy configuration loading and management.
Package config handles AgentsAegis proxy configuration loading and management.
daemon
Package daemon manages the AgentsAegis proxy background process.
Package daemon manages the AgentsAegis proxy background process.
mcp
server
Package server implements the HTTP proxy server that sits between Claude Code and the Anthropic API.
Package server implements the HTTP proxy server that sits between Claude Code and the Anthropic API.
trap
Package trap implements the trap injection decision engine, template selection, and callback handling.
Package trap implements the trap injection decision engine, template selection, and callback handling.

Jump to

Keyboard shortcuts

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