> For the complete documentation index, see [llms.txt](https://metalbear.com/mirrord/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://metalbear.com/mirrord/docs/getting-started/quick-start/use-mirrord-in-your-ide.md). Agents can also search and read this documentation through its [MCP server](https://metalbear.com/mirrord/docs/~gitbook/mcp). # Use mirrord in your IDE Install the mirrord extension for VS Code or a JetBrains IDE, and run or debug your app against your Kubernetes cluster or Amazon ECS service. The mirrord extension runs your app with mirrord when you run or debug it from your IDE, so you keep your launch configurations, breakpoints, and debugger. You need a workload to run against: a deployment or a pod in your cluster, [another target](https://metalbear.com/mirrord/docs/reference/targets.md), or a [workload outside Kubernetes](https://metalbear.com/mirrord/docs/using-mirrord/beyond-kubernetes.md), such as an Amazon ECS task. For a Kubernetes workload, your machine and cluster need to meet the [requirements](https://metalbear.com/mirrord/docs/getting-started/quick-start/install-mirrord.md#requirements). For a workload outside Kubernetes, see [Required versions](https://metalbear.com/mirrord/docs/using-mirrord/beyond-kubernetes.md#required-versions). {% hint style="warning" %} Support for workloads outside Kubernetes, such as Amazon ECS tasks, is in **alpha**. See [Beyond Kubernetes](https://metalbear.com/mirrord/docs/using-mirrord/beyond-kubernetes.md) for the setup, the required versions, and the plans that include it. {% endhint %} ## Install {% tabs %} {% tab title="VS Code / Cursor / Windsurf" %} Extensions → search **mirrord** → Install. Works with all VS Code forks (Cursor, Windsurf, Antigravity, PearAI, Trae). You can also download it from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=MetalBear.mirrord). A **mirrord** button with a circle appears in the status bar at the bottom of the window. {% endtab %} {% tab title="JetBrains" %} Settings (Preferences on macOS) → Plugins → search **mirrord** → Install. Works with IntelliJ, GoLand, PyCharm, and other JetBrains IDEs. You can also download it from the [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/19772-mirrord). The mirrord icon appears in the navigation toolbar, top right. {% hint style="info" %} On Windows, some run configurations still need WSL. See [JetBrains IDEs](https://metalbear.com/mirrord/docs/ide-extensions/intellij.md) for the ones that run natively. {% endhint %} {% endtab %} {% endtabs %} The extension downloads the mirrord binary it needs. To run `mirrord` commands yourself, such as `mirrord ui`, the [Onboarding Wizard](https://metalbear.com/mirrord/docs/getting-started/quick-start/onboarding-wizard.md), or the [mirrord MCP Server](https://metalbear.com/mirrord/docs/use-cases/using-mirrord-with-ai/mcp-server.md), [install the CLI](https://metalbear.com/mirrord/docs/getting-started/quick-start/install-mirrord.md) too. ## Run your first session {% tabs %} {% tab title="VS Code / Cursor / Windsurf" %} 1. Click **mirrord** in the status bar. The circle fills in when mirrord is enabled. ![mirrord button](https://2838204941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FghNlSpMkqkYKZCZQsHRt%2Fuploads%2Fgit-blob-e11a9295b081be6e605ad0f27267b958d7ad734f%2Fenabler%20\(1\).png?alt=media) 2. Run or debug your app as you usually do. 3. Pick the target to run against. To see targets in another namespace, pick **Select Another Namespace**. {% endtab %} {% tab title="JetBrains" %} 1. Click **Enable/Disable mirrord** in the navigation toolbar, next to the **mirrord** menu. ![Enable/Disable mirrord button](https://2838204941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FghNlSpMkqkYKZCZQsHRt%2Fuploads%2Fgit-blob-600de68356faebde274a4a8564830d8523e8e072%2Fenabler.png?alt=media\&token=b35390de-6c0d-47c7-a96c-a1856230a53b) 2. Run or debug your app as you usually do. 3. Pick the target to run against. For some projects, such as Java projects that use the IntelliJ build system, the plugin can't show the target dialog and cancels the run. Set the target in your config file instead. See [Selecting session target](https://metalbear.com/mirrord/docs/ide-extensions/intellij.md#selecting-session-target). {% endtab %} {% endtabs %} The target list shows Kubernetes workloads only. To run against a workload outside Kubernetes, set its `serverless/` target in a config file instead. See [From your IDE](https://metalbear.com/mirrord/docs/using-mirrord/beyond-kubernetes.md#from-your-ide). With that config, only requests that carry the `baggage: mirrord-session=` header reach your local process. {% hint style="success" %} **Send a request to your remote target.** You should see it arrive at your local process as well! {% endhint %} To see what mirrord does by default, see [What just happened?](https://metalbear.com/mirrord/docs/getting-started/quick-start/first-session.md#what-just-happened) ## Use a config file To change what mirrord does, add a `mirrord.json` to your project's `.mirrord` directory, or pick a config with **Select active config** in the mirrord menu. The extension autocompletes `mirrord.json` files. For the order in which the extension looks for a config, see [VS Code](https://metalbear.com/mirrord/docs/ide-extensions/vscode.md#using-the-mirrord-config) or [JetBrains IDEs](https://metalbear.com/mirrord/docs/ide-extensions/intellij.md#using-the-mirrord-config). ## Next steps * [VS Code](https://metalbear.com/mirrord/docs/ide-extensions/vscode.md) and [JetBrains IDEs](https://metalbear.com/mirrord/docs/ide-extensions/intellij.md): launch configurations, target selection, config files, and the mirrord binary. * [Filtering Incoming Traffic](https://metalbear.com/mirrord/docs/using-mirrord/incoming-traffic/filter-incoming-traffic.md): steal only your own requests, so your local process answers them instead of the deployed service. * [Install the Operator](https://metalbear.com/mirrord/docs/getting-started/quick-start/install-the-operator.md): for teams sharing a cluster, the platform team installs it once per cluster. --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation by asking a question. Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters: ``` GET https://metalbear.com/mirrord/docs/getting-started/quick-start/use-mirrord-in-your-ide.md?ask=&goal= ``` `ask` is the immediate question: it should be specific, self-contained, and written in natural language. `goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.