Laptop collector

attestyx is the on-laptop part of Attestyx, written in Rust: a single ~10 MB program with no runtime to install. It records every conversation between coding agents and model providers and never changes what the developer sends.

The one exception is optional: in policy block mode, a request that loads a skill, plugin or MCP server the organisation has denied is refused on the laptop. See Skills, plugins and MCP policy.

Install

Prebuilt binaries are attached to each GitHub Release. Each archive holds one folder, attestyx-<version>-<target>/, with the attestyx binary, LICENSE and NOTICE. SHA256SUMS lists the checksum of every archive.

Platform<target>Archive
Linux x86_64 (static, any distro)x86_64-unknown-linux-musl.tar.gz
Linux ARM64 (static, any distro)aarch64-unknown-linux-musl.tar.gz
macOS Intelx86_64-apple-darwin.tar.gz
macOS Apple siliconaarch64-apple-darwin.tar.gz
Windows x86_64x86_64-pc-windows-msvc.zip

<version> is the release tag without the leading v (tag v0.1.0 gives attestyx-0.1.0-<target>.tar.gz). Each set of commands below verifies the archive against SHA256SUMS before installing it.

Linux

VERSION=0.1.0 TARGET=x86_64-unknown-linux-musl   # or aarch64-unknown-linux-musl
BASE=https://github.com/Liceron/attestyx/releases/download/v$VERSION
curl -fsSLO "$BASE/attestyx-$VERSION-$TARGET.tar.gz"
curl -fsSLO "$BASE/SHA256SUMS"
grep " attestyx-$VERSION-$TARGET.tar.gz\$" SHA256SUMS | sha256sum -c -
tar -xzf "attestyx-$VERSION-$TARGET.tar.gz"
sudo install -m 755 "attestyx-$VERSION-$TARGET/attestyx" /usr/local/bin/attestyx
attestyx --version

macOS

VERSION=0.1.0 TARGET=aarch64-apple-darwin   # or x86_64-apple-darwin (Intel)
BASE=https://github.com/Liceron/attestyx/releases/download/v$VERSION
curl -fsSLO "$BASE/attestyx-$VERSION-$TARGET.tar.gz"
curl -fsSLO "$BASE/SHA256SUMS"
grep " attestyx-$VERSION-$TARGET.tar.gz\$" SHA256SUMS | shasum -a 256 -c -
tar -xzf "attestyx-$VERSION-$TARGET.tar.gz"
sudo install -m 755 "attestyx-$VERSION-$TARGET/attestyx" /usr/local/bin/attestyx
attestyx --version

The binaries are not signed or notarised. Downloading with curl (as above) does not set the quarantine flag. A file downloaded in a browser is blocked by Gatekeeper until you run xattr -d com.apple.quarantine /usr/local/bin/attestyx.

Windows (PowerShell)

$Version = "0.1.0"; $Name = "attestyx-$Version-x86_64-pc-windows-msvc"
$Base = "https://github.com/Liceron/attestyx/releases/download/v$Version"
Invoke-WebRequest "$Base/$Name.zip" -OutFile "$Name.zip"
Invoke-WebRequest "$Base/SHA256SUMS" -OutFile SHA256SUMS
$Expected = ((Select-String -Path SHA256SUMS -Pattern " $Name.zip$").Line -split '\s+')[0]
if ((Get-FileHash "$Name.zip" -Algorithm SHA256).Hash -ne $Expected) { throw "checksum mismatch" }
Expand-Archive "$Name.zip" -DestinationPath .
$Dest = "$env:LOCALAPPDATA\Programs\attestyx"
New-Item -ItemType Directory -Force $Dest | Out-Null
Copy-Item "$Name\attestyx.exe" $Dest
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$Dest", "User")
# open a new terminal, then:
attestyx --version

Build from source

cargo test            # 53 unit tests
cargo build --release # target/release/attestyx

Enrol and run

attestyx enroll --server https://attestyx.example.com --token <ATTESTYX_ENROLL_TOKEN>   # once per laptop
attestyx daemon                             # proxy + session reader + sync (run it as a service)
attestyx wrap claude                        # or: wrap codex / gemini / antigravity / …

Two parts

PartWhat it does
Recording proxy (127.0.0.1:8790)Forwards traffic untouched and streams responses as they arrive. It stores a copy of each request/response, extracts the prompt, reply, tool calls and the loaded tools, MCP servers and skills, and redacts credentials.
Session readerTails the session files each agent already writes to disk, normalises them into one event format, and detects bypass (sessions that never went through the proxy).

Supported agents

Run attestyx agents to see the supported agents, how each is routed and what is installed. The Tested column uses these levels:

"routing" proves the path to the provider. It does not prove reply/tool-call extraction or bypass detection for that agent; those are verified only for Claude Code and Codex. Tests use a sandboxed HOME and never touch real logins.

AgentHowTestedSession reader
Claude Code (CLI)attestyx wrap claude: ANTHROPIC_BASE_URL as env and --settings (a project's settings.local.json env otherwise wins)liveyes, live
Codex CLIattestyx wrap codex: -c model_providers.attestyx={…/codex, requires_openai_auth, supports_websockets=false}liveyes, live
Google Antigravity CLI (agy) 1.5attestyx wrap antigravity: CLOUD_CODE_URL → /cloudcode-daily. Prompts, replies, tool calls, skills and MCP servers extractedliveyes, live (conversations/<id>.db protobuf steps + history.jsonl)
Google Antigravity IDE 2.34 (desktop)attestyx wrap antigravity-ide launches it with CLOUD_CODE_URL (refuses if it is already open). Company-wide: attestyx setup antigravity-ide. Verified on the real app: its language server received and honoured the setting. No chat sent (needs a desktop Google login)partialyes (same format as the CLI)
Gemini CLI 0.70attestyx wrap gemini. Google login → CODE_ASSIST_ENDPOINT. API key → GOOGLE_GEMINI_BASE_URL, only when settings pin gemini-api-key; attestyx setup gemini --apply pins it oncerouting (API key)yes, real files
OpenCode 1.19attestyx wrap opencode: OPENCODE_CONFIG_CONTENT provider baseURLroutingyes, real files
GitHub Copilot CLI 1.0attestyx wrap copilot: native COPILOT_API_URL; its MCP calls to the bare origin are recognised by user-agent. Chat needs a real GitHub loginpartialnone
Aider 0.86attestyx wrap aider (OpenAI and Anthropic both tested)routingnone
OpenClaude 0.32attestyx wrap openclauderoutingnone
Goose 1.60attestyx wrap gooseroutingnone
OpenHands CLI 1.16attestyx wrap openhands: LLM_BASE_URL chosen from LLM_MODEL's provider (openai/anthropic/mistral/xai/moonshot); requires LLM_MODEL + LLM_API_KEY. Other providers are not routed (warned, never guessed)routingnone
Kimi Code 2.7API-key providers: attestyx setup kimi --apply rewrites base_url (routing tested). /login accounts: attestyx wrap kimi; not testable without an accountrouting (API key)none
Grok CLI 1.0attestyx wrap grok covers the model list only. Chat with an API key: set base_url and env_key in ~/.grok/config.toml (routing tested). Chat with an xAI login is not routedpartialyes, real files
Mistral Vibe 3.1attestyx wrap vibe: VIBE_PROVIDERS; its telemetry to the bare origin is recognised by user-agentroutingnone
Oh My Pi 19attestyx setup omp --apply: ~/.omp/agent/models.ymlroutingnone
Claude Code VS Code ext.attestyx setup vscode-claude --apply: env.ANTHROPIC_BASE_URL in ~/.claude/settings.json, tested with the CLI that reads the same fileroutingyes (same files)
Continueattestyx setup continue prints apiBase: …/anthropic/v1/; tested with the Continue CLI cnroutingnone
Clineattestyx setup cline prints the base URL, which must end in /v1; tested with the Cline CLIroutingnone
OpenClawattestyx setup openclaw prints config set …baseUrl and …api "anthropic-messages"routingnone
Copilot in VS Codeattestyx setup vscode --apply (marked block in VS Code settings.json; the edit is tested, Copilot itself is not)no (GUI)yes, reader: VS Code chat sessions, including Remote-SSH. Verified on real VS Code 1.147 with a test extension; a real Copilot chat is still worth one check
Grok Buildattestyx setup grok-build --applyno (needs xAI login)none
Cursorattestyx setup cursor prints settings to enter (works only with your own API key)no (GUI)yes, reader: Cursor's local chat database. File location and keys confirmed on real Cursor 3.31; the message rows themselves are unverified
ZCodeattestyx setup zcode prints settings to enterno (GUI)none

Setup helpers

attestyx setup makes no change unless you pass --apply. It shows the exact change, backs up the original before writing, and --undo restores it byte for byte. Undo refuses if the file was edited after --apply (pass --force to override). Agents set up this way need attestyx daemon running.

Known limits

Commands

attestyx agents                       # supported agents, how each is routed, what's installed
attestyx daemon                       # proxy + session reader (what IT installs as a service)
attestyx wrap claude -- -p "hello"    # run an agent through the proxy (starts one if needed)
attestyx setup vscode [--apply|--undo]
attestyx log                          # recent model exchanges with summaries
attestyx show <id> [--bodies]         # one exchange in full
attestyx sessions                     # sessions on disk: proxied / BYPASSED / PARTIAL / unmatched
attestyx bypass                       # only the bypassed sessions
attestyx collect --once [--backfill]  # run the session reader once
attestyx reindex                      # re-run extraction after an upgrade
attestyx enroll --server URL --token T  # register this laptop with the Attestyx server (once)
attestyx sync                         # download policy + send everything not yet sent
attestyx status                       # server connection and what is waiting to be sent
attestyx policy [--refresh]           # cached skills / plugins / MCP policy

To enforce routing org-wide, IT sets the same values through managed settings (Claude Code managed-settings.json env, Codex managed config, and so on) so that developers can't skip the proxy. The session reader flags anyone who bypasses it anyway.

Bypass detection

Proxy routes

PrefixUpstream
(none), /anthropicapi.anthropic.com
/openaiapi.openai.com
/codexchatgpt.com/backend-api/codex (ChatGPT login) or api.openai.com/v1 (API key)
/autoAnthropic, ChatGPT or Gemini when the credential style identifies it; anything else is refused (never guessed)
/gemini, /cloudcode, /cloudcode-dailygenerativelanguage.googleapis.com, cloudcode-pa.googleapis.com, daily-cloudcode-pa.googleapis.com
/xai, /mistralapi.x.ai, api.mistral.ai
/kimi, /kimi-global, /moonshot, /moonshot-cnapi.kimi.com/coding, api.kimi.ai/coding, api.moonshot.ai, api.moonshot.cn
/copilot, /copilot-business, /copilot-enterpriseapi.githubcopilot.com (and the business./enterprise. hosts); /v1/engines/* → copilot-proxy.githubusercontent.com
/zaiapi.z.ai/api/anthropic

Every route was probed through the proxy, and each provider answered with its own auth error.

Requests without a provider prefix (Claude Code uses the bare base URL; Copilot sends MCP calls and Vibe sends telemetry to the bare origin) are routed by recognising the client's user-agent. An unrecognised request that carries credentials is refused locally (421) and recorded, never guessed: guessing would hand one provider's key to another. Credential-free probes (for example Claude Code's HEAD /api/hello) go to Anthropic.

Proxy rules

Skills, plugins and MCP policy

The server keeps a review state for every skill, plugin and MCP server it has seen, per agent: approved, denied or unreviewed. The daemon downloads the policy at start and then every 60 s into <data dir>/policy.json. attestyx sync and policy --refresh download it straight away, and so does attestyx wrap when no daemon is running.

A denied item that is loaded raises rule R19 (HIGH), whether it was reported or blocked.

Live-tested with Claude Code and Codex, each with one denied skill:

Not done yet