Documentation
Installation, integrations and troubleshooting.
SilkCipher Link 1.3.12Quick start
Download SilkCipher from the App Store on your iPhone or iPad. Public Android downloads are pending.
Install and start Link on the computer running your agent.
npm install -g @silkcipher/link
silk-link
In the app, scan Link’s QR code under Devices → Add Device. To show the code again, run silk-link pair.
Once paired, select your computer, connect your tool and open a session. Keep Link and your work computer online while using the app.
Install and launch
Requires Node.js 22+ and npm 10+. Install from a regular user terminal, without sudo or an administrator terminal.
node --version
npm --versionInstall the package:
npm install -g @silkcipher/link| Platform | Launch |
|---|---|
| macOS (arm64 / x64) | In Finder, go to ~/Applications and open SilkCipher Link, or run silk-link. |
| Windows (x64) | Open SilkCipher Link from the Start menu, or run silk-link. |
| Linux (arm64 / x64) | Run silk-link. It runs in the background without a system tray. |
Installation adds the launcher. It does not start Link or enable launch at login. Starting the same instance again does not create a second background process.
Missing macOS or Windows launcher
silk-link launcher status
silk-link launcher installRun these in a regular local user terminal. Automatic launcher registration may be skipped over SSH, in CI, in an elevated session, or when install scripts are disabled.
Foreground and headless operation
Usually, the no-argument command is enough. For a service manager, use foreground mode. This does not create a systemd service automatically. Stop any existing background process for the same instance before handing it to a service manager.
silk-link serve --foregroundTo start on macOS or Windows without automatically creating a tray:
silk-link start --no-trayThis only affects the current launch; it does not close an existing tray.
Pairing and control
- Start Link and open the pairing QR code from its menu, or run
silk-link pair. - Sign in to the app and scan under Devices → Add Device.
- Select your computer and open a session.
pair reads the current code once. --wait is optional. If pairing data is not ready, check the connection and retry shortly. For a slow connection, you can use:
silk-link pair --wait 120--wait accepts 1–300 seconds, requires an interactive terminal, and cannot be combined with --json. Ctrl+C ends the wait without stopping an already-running Link.
Already paired, or signed in without control
A bound Link does not offer a fresh pairing code. Signing in does not recover control keys: a new app instance needs a one-time transfer from an authorized client. If you intend to remove the existing binding, see reset and pair again.
Read a new QR code after expiry. Do not share pairing codes, pairing JSON or control keys.
Connect agents
Run Link and your tool on the same computer under the same system user. Sign in and configure model providers and permissions in the original tool.
Connect desktop tools directly
Link comes with connections for Codex Desktop, DeepSeek Harness and OpenCode. Open the tool and Link on your computer, then select a desktop session for that device in the phone app.
- Codex Desktop and DeepSeek Harness connect directly on macOS. Harness can run as the desktop app or its web interface on your computer.
- OpenCode Desktop connects through the local service started by the desktop app. Available actions depend on the OpenCode version and session permissions.
- Kimi Code Desktop and Antigravity each use a separate direct connection component. Link can fetch them automatically when they appear in the official update catalog.
Install the Kiro and CodeBuddy CN extensions
Download the VSIX for your IDE. See the supported tools for verified IDE versions.
- Open your IDE's Extensions panel. Choose Install from VSIX from the menu in the upper right and select the file you downloaded.
- Enable the extension and reload the IDE if prompted. In Kiro, open a workspace and its Agent. In CodeBuddy CN, sign in and open a Craft session.
- Run Link under the same system user and pair the computer. Select the computer in the phone app and open the matching desktop session.
Install plugins in ZCode and Qoder CN
In ZCode, install the plugin from its plugin manager and grant read and write access to sessions. The Qoder CN plugin requires Node.js 24 or later. Import the ZIP in its plugin manager, then enable it and grant access. The plugin connects to the running Link instance.
Use command-line tools through Herdr or Herdr Desktop
- Install and open Herdr TUI or Herdr Desktop using the official Herdr documentation.
- Run a tool you have installed and signed in to, such as Claude Code, Codex CLI, OpenCode or Qwen Code, inside Herdr.
- Start Link, then open the matching workspace or terminal session in the app.
Connection records cover Herdr 0.8.0–0.9.5 and Herdr Desktop 0.1.13–0.1.18. You can start Link first. It will try to connect when Herdr opens. For workspaces Herdr Desktop shows over SSH, run Link on the corresponding remote computer.
Check connections
silk-link doctor
silk-link status
Inspect herdr_backends in silk-link status --json locally to check TUI and Desktop/Core separately. That output may contain pairing material, so keep it private. See configuration and paths for custom endpoints.
Command reference
| Command | Purpose |
|---|---|
silk-link | Start Link; equivalent to start. |
silk-link pair | Display the current valid pairing QR code. |
silk-link version | Show the installed program version and revision. |
silk-link status | Show the local background instance, binding and connections. |
silk-link doctor | Diagnose the instance, backends and previously observed network state. |
silk-link logs | Read the last 100 log lines. |
silk-link logs --lines 200 | Choose the tail length, from 1 to 10000 lines. |
silk-link logs --follow | Follow the log. Ctrl+C ends observation. |
silk-link reconnect | Request a new cloud connection without clearing the binding. |
silk-link stop | Stop this Link instance and tray while preserving external Herdr sessions. |
silk-link help | Show full usage, or use command help such as silk-link help pair. |
doctor does not repair, restart or probe public services. Network conclusions come from the background instance’s observations; absent evidence is reported as unknown.
Configuration and paths
By default, Link saves settings in the user directory on your work computer. The default instance directory is ~/.config/silkcipher, normally %USERPROFILE%\.config\silkcipher on Windows.
| File | Purpose |
|---|---|
silkcipher-link.json | Instance and service connection settings. |
silkcipher-link-backends.json | Herdr Core/Desktop endpoint and agent executable paths. |
state/sidecar.log | Runtime log. Prefer reading it with silk-link logs. |
A separate instance directory
--root requires an absolute path. Use the same root for all management commands; a new directory is a different instance, not your existing binding.
silk-link start --root /absolute/path/link-root
silk-link doctor --root /absolute/path/link-root
silk-link pair --root /absolute/path/link-rootHerdr TUI endpoint
Discovery is automatic by default. Before a Herdr source has been fixed for an instance, you can start with a custom local socket:
silk-link start --herdr-socket /absolute/path/herdr.sockA fixed Herdr source cannot be overwritten with different arguments. Restore its original endpoint first when there is a conflict. If you need to change the selected source, follow the program’s guidance and account for reset’s effect on pairing.
Herdr Desktop/Core and agent paths
Stop Link before editing the matching fields in your existing silkcipher-link-backends.json. Preserve other settings. Replace every example path below with a real local path:
{
"schema_version": 1,
"core_socket": "/absolute/path/herdr-core.sock",
"core_agents": {
"executables": {
"codex": "/absolute/path/codex"
},
"search_dirs": ["/absolute/path/agent-bin"]
}
}You do not need core_agents when discovery works. executables maps agent IDs to programs; search_dirs adds search locations. Paths must be absolute, with no ~ or environment expansion. Escape backslashes in Windows JSON paths.
Initial setup reads the default Herdr Core endpoint. Later environment changes do not override a saved core_socket. After editing, run silk-link again. Pairing is preserved.
Device settings edited on your phone
Device settings such as shortcuts, phrases, terminal templates and agent templates stay in the user directory on the computer running Link. The app reads and writes them through its paired, encrypted connection. SilkCipher servers do not save these settings. The device configuration database is stored at the following path. The app manages the identity identifier.
~/.config/silkcipher-app/v1/identities/<identity>/config.sqlite3
Communication between an agent and its model server does not pass through any SilkCipher tool or server. See the privacy policy for how we handle account, device and notification information.
Update, reset and uninstall
Update Link
silk-link stop
npm install -g @silkcipher/link
silk-linkUpdating preserves configuration and pairing. Use silk-link version and silk-link doctor to check the installed program and running instance afterward.
Automatic connection updates
While running, Link checks the official update catalog for signed connection components. With default settings, it fetches compatible stable updates and activates them when they are ready to switch.
Use npm to update Link itself. Update extensions through the installation channel for each desktop tool.
Reset and pair again
Use reset only when you intend to remove the current binding or recover lost control. It clears the local Link identity and binding, requiring a new pairing. It is not a routine fix for disconnections.
silk-link reset --yesA normal background instance restarts automatically. If it was stopped, run silk-link first. Service-managed instances must be restored through their existing service manager. Then run silk-link pair. Reset does not stop external Herdr; Herdr continues managing its sessions.
Uninstall
Stop Link:
silk-link stopOn macOS or Windows, optionally remove the launcher:
silk-link launcher removeThen uninstall the npm package:
npm uninstall -g @silkcipher/linkUninstalling does not automatically delete configuration, identity, workspaces or runtime caches. Do not empty the instance directory to troubleshoot a normal connection problem.
Troubleshooting
Start with diagnostics, then read the log. Do not begin with a reset.
silk-link version
silk-link doctor
silk-link logs --lines 200Command not found, or an unexpected version
Check Node.js/npm versions, the global install location and the program resolved by your shell:
npm prefix -g
npm ls -g @silkcipher/link --depth=0macOS/Linux:
command -v silk-linkWindows PowerShell:
Get-Command silk-linkAdd npm’s global executable directory to PATH and reopen your terminal. If a platform dependency is missing, check for --omit=optional and reinstall without that setting. For permission errors, use a user-writable npm installation location.
Link is running but the menu bar or tray icon is missing
Confirm you are in a local macOS/Windows graphical session. Linux, SSH, foreground service mode and --no-tray do not automatically start a tray. In a regular local terminal, run silk-link launcher status, use silk-link launcher install if needed, then open Link from its launcher.
If the launcher exists but does not work, inspect doctor and logs. Do not delete pairing data to repair an icon.
Pairing data is not ready, expired, or already bound
Check the background and cloud state with doctor. Retry silk-link pair shortly for missing or expired data; use pair --wait 120 if you want to wait. An already-bound message calls for the control transfer flow, not repeated pairing generation.
Link started, but the app shows the computer offline
A successful start confirms only the local background process. Inspect network, recent errors and Realm connections in doctor. Check system time, proxy, firewall and network connectivity. After fixing the connection, request a reconnect:
silk-link reconnect
silk-link logs --followunknown means there is no connection evidence. Use logs to investigate disconnected or degraded. doctor does not actively probe public connectivity.
The computer is online, but desktop sessions are missing
Make sure the tool is still running on the same computer under the same system user. Direct connections require the corresponding component. Check the official updates. For tools that use an extension, check that it is enabled and has session permissions.
Link removes a desktop tool’s online sessions when the tool exits. It tries to reconnect when you reopen the tool.
The computer is visible but workspaces or agents are missing
Make sure Herdr TUI/Desktop is running on the same computer as the same user. Check each entry in herdr_backends and its socket path. One offline backend does not imply every backend is unavailable.
SSH-aggregated workspaces in Desktop need Link on their remote computer. A reset does not start a missing Herdr process.
Claude Code, Codex or another agent is missing after a graphical launch
First confirm the command-line agent is installed, signed in and working independently in a terminal. Graphical sessions may inherit a different PATH. Link searches common locations; if that is insufficient, configure absolute paths in core_agents.executables or search_dirs. See configuration and paths.
Creating an agent with an initial prompt requires a real input-ready signal. Incomplete sign-in or readiness can cause creation to fail; finish the agent’s initialization on your computer first.
Terminals work but file operations fail
Inspect the specific Bulk channel error in doctor and logs. Treat it as a Files entitlement issue only for an explicit 402 / SUBSCRIPTION_REQUIRED. Do not classify generic 401, 403 or network errors as a missing subscription.
Invalid configuration, or commands target the wrong instance
Check that launch and management commands use the same user and --root. Repair invalid JSON, paths or overwritten configuration before starting. Do not delete lock files to force a second instance or expect reset to bypass configuration validation.
Report a problem
Contact service@silk-cipher.com with:
- Your operating system, app version and Link version.
- The time, steps to reproduce, expected result and actual result.
- Relevant
silk-link doctordiagnostics and a short log excerpt. - Your tool, its version and how it connects. If you use Herdr, include your Herdr or Herdr Desktop version.
Share only necessary, redacted information. Do not send QR codes, pair --json, full status --json, identity files, passwords or API keys. doctor excludes pairing material, but review logs before sharing them.