> ## Documentation Index
> Fetch the complete documentation index at: https://usesprocket.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://usesprocket.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://usesprocket.dev/docs/api/mcp.
> Every agent surface: https://usesprocket.dev/docs/.well-known/llms-manifest.json

# Troubleshooting (/docs/troubleshooting)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 541 · updated: 2026-11-12 -->
Related: [Introduction](/docs/index.md), [Quickstart](/docs/quickstart.md), [Install](/docs/install.md), [Settings](/docs/reference/settings.md), [Projects and threads](/docs/use/projects-and-threads.md)

> Fixes for common Sprocket problems, including port conflicts, sign-in and keyring errors, the CLI opening the browser, and desktop updates.

## The port is already in use

Sprocket's server uses port `17731`. If another program uses it, or Windows reserves it, set `SPROCKET_PORT` to a free port before you start Sprocket:

```sh
SPROCKET_PORT=17800 sprocket
```

## A server with a different data directory is running

Another Sprocket server already uses the port with a different data directory. Stop that server, or set `SPROCKET_DATA_DIR` to its data directory.

## The CLI's local server didn't start

Read `~/.sprocket/cli-server.log` for the error.

## The CLI version doesn't match the running server

The CLI and the running server must be the same version. Update both, then restart the desktop app or stop the old server and run the command again.

## `sprocket` opens the browser instead of the desktop app

The CLI finds the desktop app through the location the app saves each time it starts. Open the desktop app once, then run `sprocket` again. You can also set `SPROCKET_DESKTOP_EXECUTABLE` to the app's executable, such as the AppImage on Linux.

## Keyring errors when signing in

These usually mean you chose `--credential-store keyring` and the keyring is locked or unavailable. Unlock your OS keyring and run `sprocket login` again. To skip the keyring, run `sprocket login --credential-store file`. That stores your sign-in in an unencrypted file only your user can read.

## The desktop app on Linux doesn't update

Updates only work when you run the AppImage itself. If you extracted it or installed it another way, download new versions from [GitHub Releases](https://github.com/spikonado/sprocket/releases).

## The npm package can't find its binary

The binary for your platform ships as an optional dependency. Reinstall without omitting optional dependencies:

```sh
npm install -g usesprocket
```

If your platform isn't [supported](/docs/install#cli-and-web-app), use the desktop app.

## Still stuck

Email [aarav@spikonado.com](mailto:aarav@spikonado.com) or open an issue on [GitHub](https://github.com/spikonado/sprocket/issues).
