Skip to content

OpenCode Mobile Deep Links and Session Links

OpenCode Mobile can open a specific session from a deep link. Notifications, quick actions, and some shared links use the same resolver.

opencodemobile://session/<sessionId>?project=<url-encoded project path>

Example:

opencodemobile://session/ses_abc123?project=%2FUsers%2Fyou%2Fcode%2Fmy-project

The app:

  1. resolves the link against the currently configured server;
  2. switches to the given project if it differs from the active project;
  3. opens the session and replaces the current route with the Chat tab.

The link does not carry a server identity. It resolves against the active connection. A saved notification or quick-action link may include a connection scope so the app can switch servers first.

Sessions the server excludes, such as archived or deleted sessions, are not reachable through a session deep link. Restore or unarchive the session on the server first.

On the web build, the equivalent route is:

/session/<sessionId>

Universal/app links over HTTPS are not configured. A link works when it uses the app scheme or the web path directly.

If the session does not belong to the given project or cannot be found, the app shows a Could not open session screen with the server message. It does not create a replacement session or silently open a different chat.

Common causes:

  • the session was archived, deleted, or belongs to another server;
  • the project path is wrong or not URL-encoded;
  • the active connection changed after the link was created;
  • the app is not onboarded or connected.

Cloud Link pairing links use a different format and include a pairing identifier and token. Treat them as credentials. Do not paste them into public issues, logs, or screenshots. See Cloud Link.

Notifications, quick actions, widgets, and external links create the session link for you. The current app does not publish a public session share URL from the Chats library. Treat a copied session link like any other credential-bearing route.

  • Deep links can open a session but cannot approve permissions or submit prompts.
  • A link does not bypass server authentication.
  • Pairing links and session links can grant access or expose content; handle them as sensitive.
  • If a link is exposed, rotate the relevant credentials or revoke the Cloud Link machine.

Next: Chats and sessions, notifications, or Cloud Link.