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 Intel | x86_64-apple-darwin | .tar.gz |
| macOS Apple silicon | aarch64-apple-darwin | .tar.gz |
| Windows x86_64 | x86_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 --versionmacOS
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 --versionThe 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 --versionBuild from source
cargo test # 53 unit tests
cargo build --release # target/release/attestyxEnrol 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
| Part | What 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 reader | Tails 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:
- live: real account, real replies, extraction checked.
- routing: the real agent was installed and run through attestyx with fake API keys. Its model request reached the proxy and the correct provider answered (401 "invalid key"). That proves the agent → proxy → provider chain without a subscription.
- partial: only side requests (model list, MCP, metadata) reached the provider. The agent needs a real login before it sends a chat request.
- no: not testable on a headless server without a paid login (GUI apps, Grok Build).
"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.
| Agent | How | Tested | Session reader |
|---|---|---|---|
| Claude Code (CLI) | attestyx wrap claude: ANTHROPIC_BASE_URL as env and --settings (a project's settings.local.json env otherwise wins) | live | yes, live |
| Codex CLI | attestyx wrap codex: -c model_providers.attestyx={…/codex, requires_openai_auth, supports_websockets=false} | live | yes, live |
Google Antigravity CLI (agy) 1.5 | attestyx wrap antigravity: CLOUD_CODE_URL → /cloudcode-daily. Prompts, replies, tool calls, skills and MCP servers extracted | live | yes, 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) | partial | yes (same format as the CLI) |
| Gemini CLI 0.70 | attestyx 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 once | routing (API key) | yes, real files |
| OpenCode 1.19 | attestyx wrap opencode: OPENCODE_CONFIG_CONTENT provider baseURL | routing | yes, real files |
| GitHub Copilot CLI 1.0 | attestyx wrap copilot: native COPILOT_API_URL; its MCP calls to the bare origin are recognised by user-agent. Chat needs a real GitHub login | partial | none |
| Aider 0.86 | attestyx wrap aider (OpenAI and Anthropic both tested) | routing | none |
| OpenClaude 0.32 | attestyx wrap openclaude | routing | none |
| Goose 1.60 | attestyx wrap goose | routing | none |
| OpenHands CLI 1.16 | attestyx 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) | routing | none |
| Kimi Code 2.7 | API-key providers: attestyx setup kimi --apply rewrites base_url (routing tested). /login accounts: attestyx wrap kimi; not testable without an account | routing (API key) | none |
| Grok CLI 1.0 | attestyx 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 routed | partial | yes, real files |
| Mistral Vibe 3.1 | attestyx wrap vibe: VIBE_PROVIDERS; its telemetry to the bare origin is recognised by user-agent | routing | none |
| Oh My Pi 19 | attestyx setup omp --apply: ~/.omp/agent/models.yml | routing | none |
| 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 file | routing | yes (same files) |
| Continue | attestyx setup continue prints apiBase: …/anthropic/v1/; tested with the Continue CLI cn | routing | none |
| Cline | attestyx setup cline prints the base URL, which must end in /v1; tested with the Cline CLI | routing | none |
| OpenClaw | attestyx setup openclaw prints config set …baseUrl and …api "anthropic-messages" | routing | none |
| Copilot in VS Code | attestyx 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 Build | attestyx setup grok-build --apply | no (needs xAI login) | none |
| Cursor | attestyx 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 |
| ZCode | attestyx setup zcode prints settings to enter | no (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
- Cursor and Copilot requests on their own paid plans go to their own servers; no local proxy can see them. Their conversations are still captured from the files the IDEs save on the laptop (reader). In
attestyx sessionsthey show asreader-only. - Antigravity's conversation files are protobuf without a published schema, so the reader recovers text heuristically (prompts and shell commands verified on real files; the step-type mapping is inferred).
- Gemini via Vertex AI is not routed.
- Kimi Code
/loginrouting and Grok/Grok Build login routing follow the agents' source code but need a paid account to test.
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- The data directory is
~/.attestyx/attestyx.db(SQLite, mode 0600). Override it withATTESTYX_HOME. - Under
attestyx wrap, logs go to~/.attestyx/wrap.logso they never print into the agent's screen. - Set the log level with
ATTESTYX_LOG=debug.
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
- Claude Code (verified): each assistant line in
~/.claude/projects/<proj>/<session>.jsonlcarries the upstreamrequestId. That ID equals therequest-idheader the proxy recorded, so coverage is checked per request. - Codex (verified): the
session-idrequest header equals the uuid in~/.codex/sessions/.../rollout-*-<uuid>.jsonl, so coverage is checked per session. - Antigravity (verified): each request's
labels.cascade_idequals the conversation file name~/.gemini/antigravity-cli/conversations/<id>.db, so coverage is checked per session. A directagyrun showed up as BYPASSED, a wrapped one as proxied. - Other agents: a session-level match where possible. With no verified join key, an unmatched session is shown as
unmatched, notBYPASSED.
Proxy routes
| Prefix | Upstream |
|---|---|
(none), /anthropic | api.anthropic.com |
/openai | api.openai.com |
/codex | chatgpt.com/backend-api/codex (ChatGPT login) or api.openai.com/v1 (API key) |
/auto | Anthropic, ChatGPT or Gemini when the credential style identifies it; anything else is refused (never guessed) |
/gemini, /cloudcode, /cloudcode-daily | generativelanguage.googleapis.com, cloudcode-pa.googleapis.com, daily-cloudcode-pa.googleapis.com |
/xai, /mistral | api.x.ai, api.mistral.ai |
/kimi, /kimi-global, /moonshot, /moonshot-cn | api.kimi.com/coding, api.kimi.ai/coding, api.moonshot.ai, api.moonshot.cn |
/copilot, /copilot-business, /copilot-enterprise | api.githubcopilot.com (and the business./enterprise. hosts); /v1/engines/* → copilot-proxy.githubusercontent.com |
/zai | api.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
- Every method, path and query string is forwarded. Unknown paths go to the provider, never to a local 404.
- Upstream errors (4xx/429/5xx) pass through unchanged.
- Bytes are forwarded verbatim, including compressed bodies. Only the stored copy is decoded (gzip, deflate, zstd).
- Recording is fire-and-forget on a separate writer thread, so a storage failure never fails a request.
attestyx wrapflushes the writer before exiting. - Upstreams come from a fixed table and are never taken from request headers (no open relay).
authorization,x-api-key,x-goog-api-key, cookies and?key=query parameters are redacted before storage.- WebSocket upgrades are refused loudly with 501. Codex is launched with websockets off.
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.
- Report mode (default): nothing is stopped. When a request loads a denied item (or an unreviewed one, with "treat unreviewed as denied"), the recorder stores a finding with action
reported. - Block mode: the proxy reads the request before forwarding it. If the request loads a denied item, the proxy answers locally and the request never reaches the provider. The developer sees
Blocked by your organisation's Attestyx policy: skill 'x' (not approved) .... The refused exchange is still recorded, with ablockedfinding. - Fail open: with no cached policy, an unrecognised agent or a body that doesn't parse, the request goes through.
- Findings are stored once per item per session, because the same skill list is sent on every turn. They ship to the server within about 5 s.
- Error status is chosen per API, from measurements against the real agents. Anthropic
/messagesgets 403permission_error, OpenAI/responsesand/chat/completionsget 400, and Gemini gets 403PERMISSION_DENIED(not yet tested live).
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:
- Report mode: the prompt answered and the finding reached the server.
- Block mode: exactly one request, refused locally in about 1 ms. The only traffic that reached the provider was Claude Code's credential-free
HEAD /api/helloprobe and Codex's model-listGET, neither of which carries the prompt. - Approving the item let the next prompt through.
Not done yet
- Live (real-account) tests beyond Claude Code and Codex; the other agents are routing-tested with fake keys.
- Session readers for Cursor, Copilot, Aider, Goose, OpenHands, Kimi and Vibe.
- Cloud agents (Claude Code on the web, Codex cloud, Copilot coding agent) via vendor admin APIs.
- Policy for Gemini / Antigravity verified by unit test only (no live block test yet).
- Full request bodies are stored on every turn (history is re-sent each turn). Deduplication comes later.