Skip to content

Security and Local File Access

  • Prefer browser or headless device login for humans.
  • Store CI API keys in a secret manager and pipe them through stdin or expose them only to the required process.
  • ANYCAP_API_KEY takes precedence over keyring and file credentials.
  • anycap logout removes persistent local credentials but does not revoke a remote key or remove an environment value.

Local media access is limited to the union of command-line roots, ANYCAP_MCP_FILE_ROOTS, and client-advertised roots. When none exist, the process working directory is the fallback.

Before upload, AnyCap canonicalizes paths and rejects:

  • .. traversal
  • sibling-prefix confusion
  • symlink escape
  • paths outside every effective root

Grant the narrowest useful directory. A global MCP definition with a permanent absolute root makes that directory available to every session that can invoke the server.

These tools bind to 127.0.0.1 by default. They use protections for write requests but do not implement user authentication.

Drive and Snapshot links can grant access to uploaded data. Use short expirations, avoid sending links through public channels, and unshare files when collaboration ends.

Restore requires an empty or absent destination and rejects absolute paths, traversal, symlinks, hardlinks, and non-regular archive entries. Snapshot creation blocks known sensitive-file matches unless --force is explicitly supplied.