CC Pocket security model

The relay is designed not to read session content. The endpoints—your paired client and local daemon—remain trusted and powerful.

Last verified July 13, 2026Version 1.3.5No independent audit
Trust model

Messages are encrypted between the CC Pocket client and daemon. The relay routes ciphertext and stores routing credentials, public keys, hashes, and timestamps—not prompts, code, private keys, or session keys.

Key agreement
P-256 ECDH + HKDF-SHA256
Message encryption
AES-256-GCM
Daemon authentication
Ed25519 challenge signature

Data path

Client → relay → daemon → Claude Code or Codex CLI. The daemon makes an outbound connection, so the default relay workflow does not require opening an inbound port on your computer. TLS protects each relay connection; an additional end-to-end channel protects content across the relay.

Pairing and identity

The daemon creates a static Ed25519 identity and a P-256 encryption identity. A client creates its own P-256 key. Pairing transfers the daemon public key and a short-lived, one-use ticket through a QR code or pairing link. The ticket is mixed into the first handshake as a pre-shared secret, so replacing a forwarded client key causes the handshake to fail.

What the relay stores

CategoryRelay can store or observeRelay is designed not to receive
Persistent dataAccount fingerprint, public keys, credential and ticket hashes, timestamps, revocation statePrivate keys, prompts, code, transcript content, session encryption keys
Connection metadataSource IP, online timing, ciphertext size and timing, account-to-device routing graphPlaintext message bodies
LogsConnection lifecycle, authentication result, rate limits, byte countsDecrypted frames

What end-to-end encryption does not protect

Folder sharing is a scope, not a sandbox. A guest session can be fenced to a folder in the product, but shell commands still execute as the owner's operating-system user.

Known limitations

How to verify or report a problem

The protocol, relay, daemon, and clients are available under the MIT license. The repository documents smoke tests that inspect the encrypted data plane and protocol tests for mismatched keys. Report vulnerabilities through GitHub private vulnerability reporting, not a public issue.

Primary sources

  1. CC Pocket security and trust model (full protocol, stored fields, threat table, verification steps, and limitations).
  2. Shared end-to-end protocol implementation.

This page summarizes project documentation; it is not a third-party security audit.