OpenCode Mobile security

OpenCode Mobile connects to a development server that may access source code, terminals, tools, and AI-provider credentials. Treat that connection as privileged infrastructure, not as a harmless consumer-app login.

Security model

Required deployment practices

  1. Keep OpenCode bound to 127.0.0.1 unless a trusted private network specifically requires another interface.
  2. Set a strong OpenCode password with opencode service set password on OpenCode 2, or OPENCODE_SERVER_PASSWORD on a standalone/V1 server.
  3. Prefer Tailscale, an authenticated HTTPS reverse proxy, or a carefully configured Cloudflare Tunnel.
  4. Never expose an unauthenticated OpenCode port through router forwarding or a public tunnel.
  5. Review permission requests and file changes before approving high-impact work.
  6. Rotate credentials after losing a device, exposing a tunnel URL, or sharing a password.

The remote-access security guide explains the threat model and configuration choices in more detail.

Report a vulnerability

Do not publish exploitable details in a public issue. Email [email protected] with:

The maintainer will acknowledge the report, reproduce it when possible, coordinate a fix, and publish release information after users have a reasonable opportunity to update.

For ordinary bugs without security impact, use the public issue tracker.