> ## Documentation Index
> Fetch the complete documentation index at: https://os.inttegro.dev/simile/llms.txt
> Use this file to discover all available pages before exploring further.

# Console

> Inspect a local Simile service in the terminal or browser.

The console brings a service definition and its running state into one workspace. Use it to browse
operations, follow HTTP exchanges, inspect Stack state, review deferred work, and understand current
fidelity gaps.

## Open the console

Open the terminal interface for the first registered service:

```bash theme={null}
simile console
```

Name a service to select it immediately:

```bash theme={null}
simile console inttegro
```

Add `--web` to use the browser interface:

```bash theme={null}
simile console inttegro --web
```

The service name is optional in both forms. When it is omitted, the console opens the first service
in the registry and keeps the service switcher available.

> [!NOTE]
>
> The console uses registered services. Run `simile register NAME --config URL_OR_FILE` before
> opening a service for the first time.

## Service lifecycle

The console first looks for the selected service on its configured listener.

* If the matching compiled artifact is already running, the console attaches to it.
* If the listener is free, the console starts the service and restores its durable state.
* If another process owns the listener, the console stops with a conflict instead of attaching to
  an unrelated process.

Closing the console stops only a service that the console started. A service that was already
running remains running.

## Terminal interface

The terminal interface uses the same service model and runtime inspection endpoints as the browser.
It is useful over SSH and in environments where opening a browser would interrupt the workflow.

| Key | Action |
| - | - |
| `Tab`, `Shift+Tab`, `←`, `→` | Move between views |
| `j`, `k`, `↑`, `↓` | Scroll the current view |
| `s` | Open or close the service switcher |
| `Enter` | Select the highlighted service |
| `r` | Refresh runtime data |
| `q`, `Ctrl+C` | Close the console |

## Browser interface

The browser interface opens on a temporary loopback URL. It combines compiled service evidence with
live runtime activity.

![Simile browser console showing a connected service and runtime telemetry](https://mintcdn.com/true-sense-simile/M3NRk3wElg0hF8aG/simile/images/simile-web/overview-light.png?fit=max\&auto=format\&n=M3NRk3wElg0hF8aG\&q=85\&s=3fc4ef40d34a09eb9e4451bf81af9552)

The views have two evidence sources:

| Views | Source |
| - | - |
| Operations, scenarios, faults, profiles, and fidelity | The registered `.similec` artifact |
| Exchanges, State, Deferred work, and runtime charts | The running service's loopback inspector |

This distinction matters when diagnosing an emulation. The artifact explains what the service can
do; runtime views show what the service has done and retained locally.

### Operations

Open **Operations** to search the compiled HTTP surface. Each operation groups its route, declared
outcomes, representative payloads, and fidelity evidence.

![An operation with its route, schemas, outcomes, and representative payloads](https://mintcdn.com/true-sense-simile/M3NRk3wElg0hF8aG/simile/images/simile-web/operation-light.png?fit=max\&auto=format\&n=M3NRk3wElg0hF8aG\&q=85\&s=2c85b50d48a67d03df909fc210b9014d)

Representative payloads explain the compiled contract. Calls made by your application appear under
**Exchanges**.

### Run an operation

Open an operation and select **Try it**. The request workbench sends the call through the running
service, including its normal routing, authentication, validation, state, effects, and exchange
recording.

The workbench starts with the operation's representative request. You can change the path, query
parameters, headers, or JSON body, then select any active profile, scenario, fault profile, and
deterministic seed. Profile credentials remain inside the service process.

The response includes an execution proof. It records the selected outcome, request controls,
validation layers, committed effects, deferred work, webhooks, and delivery fault. Use this proof
to answer why a particular response occurred.

### Exchanges and state

**Exchanges** records calls handled by the local emulator and restores them when the service starts
again. **State** reads the running Stack and its payload-free causal journal without opening the
state database while the service owns it.

![The Exchanges workspace showing requests handled by a local service](https://mintcdn.com/true-sense-simile/M3NRk3wElg0hF8aG/simile/images/simile-web/exchanges-light.png?fit=max\&auto=format\&n=M3NRk3wElg0hF8aG\&q=85\&s=9f5b7d4a6dd4e4714e40469774f7b5d3)

![The State workspace showing Stack resources and journal activity](https://mintcdn.com/true-sense-simile/M3NRk3wElg0hF8aG/simile/images/simile-web/state-light.png?fit=max\&auto=format\&n=M3NRk3wElg0hF8aG\&q=85\&s=23092da13f6cff3a32500b289ae41915)

### Replay and compare

Open a retained exchange and select **Replay**. Simile runs the captured request with its original
seed and outcome selection, without committing another state transition. The console compares the
new result with the retained response and lists semantic differences by JSON path.

Replay requires safely retained request evidence. Exchanges with opaque or truncated bodies explain
why replay is unavailable.

### Save a test session

Open **Sessions** to checkpoint the complete Stack before a test sequence. A checkpoint includes
resources, deferred work, causal journal, counters, and logical clock. Restoring it returns the
running service to that exact point.

Checkpoints live for the lifetime of the running service process. Give them intent-revealing names
such as `empty-cart`, `payment-ready`, or `after-first-retry`. The same view can advance a manually
controlled logical clock when the service uses one.

## Local security boundary

Runtime inspection is exposed only by services listening on a loopback address. Browser requests
must also originate from a loopback origin.

A console that starts the service receives a short-lived bearer capability for workbench, replay,
session, and clock mutations. The capability stays in the temporary loopback console page. A
console attached to an independently running service remains read-only.

The inspector redacts sensitive JSON fields, headers, cookies, path parameters, and query
parameters. Opaque bodies are omitted, and bodies above 256 KiB are marked as truncated. Sanitized
exchanges remain in `$SIMILE_HOME/state/services/NAME.exchanges.redb` across restarts until you use
**Clear history**. The store has no automatic retention limit.

Response bodies and explicit State values can still contain application data. Keep the service and
console on a machine you trust.

## Related guides

* [State, identity, and replay](https://os.inttegro.dev/simile/state-and-replay.md) explains which continuity survives a restart.
* [State inspection](https://os.inttegro.dev/simile/state-inspection.md) explains live and offline ownership boundaries.
* [Reproduction bundles](https://os.inttegro.dev/simile/reproduction-bundles.md) preserve one exact execution outside the console.
* [Report an issue](https://os.inttegro.dev/simile/issue-reporting.md) verifies and submits a captured inconsistency.
* [Fidelity audit](https://os.inttegro.dev/simile/fidelity-audit.md) explains the findings shown in the console.
* [Describe a service](https://os.inttegro.dev/simile/describe-service.md) provides a non-interactive summary.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.