---
title: "Command-line tools (CLI): proxymock and speedctl | Speedscale Docs"
description: "Choose between the proxymock and speedctl CLIs. Find installation, quickstarts, command references, and local, Kubernetes, CI/CD, BYOC, and cloud workflows."
canonical: "https://docs.speedscale.com/getting-started/command-line-tools/"
---

[Documentation index](https://docs.speedscale.com/getting-started/llms.txt) | [Markdown](https://docs.speedscale.com/getting-started/command-line-tools/index.md) | [Canonical page](https://docs.speedscale.com/getting-started/command-line-tools/)

# Command-line tools (CLI): proxymock and speedctl

Speedscale has two command-line tools: **proxymock** and **speedctl**. Start with **proxymock** for new workflows that record traffic, mock dependencies, and replay tests. Use **speedctl** for platform setup, managing Speedscale Cloud resources, and existing scripts that call `speedctl` commands.

First choose where your traffic is now and where you want to test it. Traffic recorded on your machine, snapshots in Speedscale Cloud, and recordings in a BYOC bucket can all feed proxymock workflows. Installing the operator is a separate prerequisite when capture or replay will run in Kubernetes.

<a id="choose-a-cli-for-your-task"></a>

## Choose a CLI for your task

| Traffic and destination | Steps |
| --- | --- |
| Your app to local recordings | 1\. [Install proxymock CLI](https://docs.speedscale.com/proxymock/getting-started/installation/). 2. Follow the [proxymock CLI quickstart](https://docs.speedscale.com/proxymock/getting-started/quickstart/quickstart-cli/). |
| Speedscale Cloud snapshot to your laptop | 1\. [Install proxymock](https://docs.speedscale.com/proxymock/getting-started/installation/) and [reuse your cloud credentials](https://docs.speedscale.com/getting-started/command-line-tools/#credentials). 2. [Pull the snapshot and replay it locally](https://docs.speedscale.com/proxymock/guides/cloud-snapshot-local/). |
| Kubernetes workload to capture or replay in your cluster | 1\. [Install and verify the operator](https://docs.speedscale.com/getting-started/installation/install/kubernetes-operator/), or [verify your existing BYOC deployment](https://docs.speedscale.com/byoc/verify/). 2. [Install proxymock](https://docs.speedscale.com/proxymock/getting-started/installation/) and follow [cluster commands](https://docs.speedscale.com/proxymock/guides/cluster/). 3. [Choose the in-cluster replay path](https://docs.speedscale.com/proxymock/guides/replay-paths/#in-your-cluster). |
| BYOC bucket to your machine or cluster | 1\. [Install proxymock CLI](https://docs.speedscale.com/proxymock/getting-started/installation/). 2. [Pull BYOC traffic](https://docs.speedscale.com/byoc/use-traffic/). 3. [Choose where the replay runs](https://docs.speedscale.com/proxymock/guides/replay-paths/). |
| Recorded traffic to CI/CD | 1\. [Record locally](https://docs.speedscale.com/proxymock/getting-started/quickstart/quickstart-cli/) or [pull a cloud snapshot](https://docs.speedscale.com/proxymock/guides/cloud-snapshot-local/#pull). 2. Follow [proxymock CI/CD setup](https://docs.speedscale.com/proxymock/guides/cicd/), including its account requirements. |
| Recordings to a cloud-managed cluster replay | 1\. [Install the operator](https://docs.speedscale.com/getting-started/installation/install/kubernetes-operator/) if needed. 2. Use [proxymock cloud replay](https://docs.speedscale.com/proxymock/guides/replay-paths/#via-speedscale-cloud). Existing `speedctl infra replay` scripts can follow [Replay with speedctl](https://docs.speedscale.com/guides/replay/via-speedctl/). |
| Platform setup in Kubernetes | Follow the [standard operator installation](https://docs.speedscale.com/getting-started/installation/install/kubernetes-operator/). Choose Helm, Argo CD, rendered manifests, or the [speedctl CLI](https://docs.speedscale.com/getting-started/installation/install/cli/) install method. |
| Existing script to Speedscale Cloud resources | Install [speedctl CLI](https://docs.speedscale.com/getting-started/installation/install/cli/), [reuse your tenant credentials](https://docs.speedscale.com/getting-started/command-line-tools/#credentials), and use `speedctl --help` for its commands. |

<a id="start-with-proxymock"></a>

## Start with proxymock

For a local record/mock/replay workflow, install proxymock alone. Initialize it once with `proxymock init`, or [reuse your existing speedctl credentials](https://docs.speedscale.com/getting-started/command-line-tools/#credentials), then work through the quickstart with your application. Local recording requires one-time activation, and recorded traffic stays on your machine by default. See [data and privacy](https://docs.speedscale.com/proxymock/how-it-works/data_and_privacy/) for details.

*   [Install proxymock CLI](https://docs.speedscale.com/proxymock/getting-started/installation/): installation and initialization for macOS, Linux, and Windows.
*   [proxymock CLI quickstart](https://docs.speedscale.com/proxymock/getting-started/quickstart/quickstart-cli/): a complete record, mock, and replay loop with a demo app.
*   [proxymock CLI overview](https://docs.speedscale.com/proxymock/how-it-works/cli/): the core commands and how traffic moves through the proxies.
*   [proxymock CLI reference](https://docs.speedscale.com/reference/proxymock-cli-reference/): command syntax, flags, and examples. Run `proxymock --help` or `proxymock <command> --help` for the help shipped with your installed version.

Prefer to work with an agent or a UI? The [agent tutorials](https://docs.speedscale.com/proxymock/#agent-tutorial), [MCP server](https://docs.speedscale.com/proxymock/how-it-works/mcp/), and `proxymock web` use the same proxymock workflows.

<a id="use-speedctl-for-platform-workflows"></a>

## Use speedctl for platform workflows

speedctl installs and configures platform components, works with cloud resources, and supports capture and replay workflows used by existing integrations. Keep using the commands a speedctl guide or script specifies; proxymock has its own command names and flags.

*   [Install speedctl CLI](https://docs.speedscale.com/getting-started/installation/install/cli/): installation for macOS, Linux, and Windows.
*   [Capture, replay, and mock with speedctl](https://docs.speedscale.com/guides/cli/): the walkthrough for existing speedctl workflows.
*   [Replay with speedctl](https://docs.speedscale.com/guides/replay/via-speedctl/): cloud-managed cluster replays and replay options.
*   [Manage DLP rules with speedctl](https://docs.speedscale.com/guides/dlp/cli-reference/): pull and push platform DLP rules.

Run `speedctl --help` to list commands and `speedctl <command> --help` to see the flags available in your installed version.

<a id="do-i-need-both-clis"></a>

## Do I need both CLIs?

For a manual install, install the tool your chosen workflow calls for. Local proxymock recording, mocking, and replaying use proxymock. If your deployment or automation also calls speedctl, install both.

For an agent-assisted install, choose the scope of the prompt:

*   **proxymock only:** the [local proxymock agent install](https://docs.speedscale.com/proxymock/getting-started/installation/#install-with-ai-agent) installs proxymock and its MCP server, with no operator.
*   **Platform setup:** the [platform agent install](https://docs.speedscale.com/getting-started/quick-start/#install-with-ai-agent) deliberately installs both CLIs, Kubernetes prerequisites, and the operator when requested. It prepares the full platform toolset; the install-one guidance above applies to manual installation.

Installing a CLI on your machine is separate from installing the operator in a cluster. For cluster setup, continue with the [platform quick start](https://docs.speedscale.com/getting-started/quick-start/) or [BYOC Kubernetes setup](https://docs.speedscale.com/byoc/configure-kubernetes/).

<a id="credentials"></a>

## Credentials: do I initialize both?

Both CLIs use `~/.speedscale` as their default configuration directory. Reusing credentials requires both clients to select the same configuration file and account context. Check which file each installed client uses without printing credentials:

```bash
proxymock version --client
speedctl version --client
```

Compare the `ConfigFile` paths. Older clients use `config.yaml`; newer clients prefer `config.json` and fall back to YAML. If the paths differ, align the clients' versions and configure both to use the same file. Both accept `--config <path>` and `--context <name>` for an explicit file and account context. Use the same overrides with both clients when you need them. A custom home or config path can make their settings separate.

With the same file and account context selected, initialize once with either `proxymock init` or `speedctl init`. If speedctl is already configured for your enterprise tenant, proxymock can reuse that configuration. Installing the second binary does not require registering another email or running `init` again.

The account in that configuration determines your access. Free proxymock activation enables local workflows; accessing a tenant's cloud snapshots requires credentials for that tenant. Follow [enterprise account setup](https://docs.speedscale.com/proxymock/guides/initialize/#enterprise-account) for sign-in and API-key options. If the file already contains credentials for another account, [replace the existing configuration](https://docs.speedscale.com/proxymock/guides/initialize/#replace-credentials). `proxymock init --api-key` alone keeps an existing configuration. Changing the shared credentials affects both CLIs.
