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

# Settings and configuration (/docs/reference/configuration)

<!-- agent-signals: reading_time_min: 3 · est_tokens: 1247 · updated: 2026-11-28 -->
Related: [CLI reference](/docs/reference/cli.md), [Keyboard shortcuts](/docs/reference/keyboard-shortcuts.md)

> Sprocket app settings, server ports, environment variables, local data directories, and credential storage.

## App settings

Open Settings or switch between light and dark mode from the sidebar.

### General

| Setting                                                  | Default |
| -------------------------------------------------------- | ------- |
| Automatically name threads                               | On      |
| Continue agents automatically after restarts and crashes | On      |
| Settle threads when their PRs merge                      | Off     |

### Version control

| Setting                                      | Default |
| -------------------------------------------- | ------- |
| Add Sprocket as a co-author on agent commits | On      |
| Pull the latest code automatically           | Off     |

See [Pull the latest code](/docs/use/github#pull-the-latest-code) for how automatic pulls work.

Other settings pages cover [account and AI usage](/docs/account/plans-and-usage#track-usage), [providers](/docs/use/models-and-providers#providers), [payments](/docs/use/purchases), and [connectors](/docs/use/agent-tools#connectors).

## Environment variables

| Variable                      | Effect                                                                                               | Default                                              |
| ----------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| `SPROCKET_PORT`               | Port for the local server. The desktop app reads it too.                                             | `17731`                                              |
| `SPROCKET_HOST`               | Address the server listens on. It accepts connections only from this machine.                        | `127.0.0.1`                                          |
| `SPROCKET_DATA_DIR`           | Data directory. The desktop app reads it too.                                                        | `~/.sprocket`                                        |
| `SPROCKET_WAKATIME_CLI`       | Opt in to [WakaTime or Hackatime AI activity tracking](/docs/use/time-tracking) with this CLI executable. | Off                                                  |
| `SPROCKET_DESKTOP_EXECUTABLE` | Path to the desktop app that `sprocket` opens.                                                       | The path in `desktop-executable`                     |
| `RUST_LOG`                    | Log filter, such as `info` or `sprocket_host=debug`. `sprocket_server` logs stay at errors only.     | `error,sprocket_agent=info,sprocket_transcript=warn` |

## Data directory

Sprocket keeps its local state in `~/.sprocket` on every OS. On Windows without `HOME` set, it uses `%USERPROFILE%\.sprocket`.

Each data directory is a separate profile with its own sign-in. To run a second profile alongside the first, set both `SPROCKET_DATA_DIR` and a different `SPROCKET_PORT`.

| Path                 | Contents                                                 |
| -------------------- | -------------------------------------------------------- |
| `credentials/`       | Your sign-in, when stored in a file                      |
| `transcripts/`       | Cached thread transcripts, attachments, and command logs |
| `tools/`             | Tools Sprocket installs for the agent                    |
| `connectors/`        | Installed connector files                                |
| `desktop-executable` | Where the desktop app is, saved each time it starts      |
| `cli-server.log`     | Log of the temporary server the CLI starts               |

### Transcript files

Thread files live in `transcripts/<user-id>/<thread-id>/`:

| Path                   | Contents                                                           |
| ---------------------- | ------------------------------------------------------------------ |
| `parts/00000000.jsonl` | Parts 0-99, sorted by number. Filenames start each 100-part range. |
| `attachments/`         | Downloaded and uploaded attachments, with their metadata.          |
| `command-logs/`        | Command output and session details.                                |

Convex holds the full transcript. Sprocket downloads the newest parts first, and downloads older parts only while the thread is open in a tab or an agent is running in it.

From the thread directory, `cat parts/*.jsonl` reads cached parts in order. The cache can have gaps while older history downloads.

## Credentials

Sprocket stores your sign-in in the OS keyring when one is available. Otherwise it uses an unencrypted file in the data directory that only your user can read. `sprocket login` tells you when it uses this fallback.

To choose the store yourself:

```sh
sprocket logout
sprocket login --credential-store keyring
```

Use `--credential-store file` to always use the file. Your choice applies to this data directory.
