<!-- Canonical HTML: https://docs.didro.ai/sap-ui-automation/getting-started/choose -->

# Choose your setup

Which setup do you need? Four questions take you to the right page: which
SAP screens, which Chrome, whether SAP GUI scripting is allowed, and which
agent. Each path ends with
`npx -y sap-ui-automation doctor`, which checks what the server can reach
and says what to change.

## Which SAP screens?

| You work in | Your computer | Go to |
| --- | --- | --- |
| SAP GUI for HTML (Web GUI) or SAP Fiori, in a browser | Windows, macOS or Linux | [Which Chrome?](#which-chrome) |
| SAP GUI for Windows | Windows | [Is SAP GUI scripting allowed?](#is-sap-gui-scripting-allowed) |
| SAP GUI for Java | macOS or Linux | not supported: use Web GUI or Fiori if your system offers them |

Several at once is fine: on Windows the server looks for SAP GUI, Web GUI
and Fiori sessions together.

## Which Chrome?

Web GUI and Fiori run in Google Chrome. Pick a browser mode
(`SAP_BROWSER`):

| You want | Mode | What you do |
| --- | --- | --- |
| nothing to set up in Chrome | `launch` (the default) | log on to SAP in the Chrome window the server opens ([guide](https://docs.didro.ai/sap-ui-automation/guides/chrome#the-sap-window-launch-the-default)) |
| your everyday Chrome, with its single sign-on, and only your SAP tabs shared | `extension` | install the SAP UI MCP extension, pair it, register your systems ([guide](https://docs.didro.ai/sap-ui-automation/guides/chrome#use-your-everyday-chrome-with-the-extension)) |
| your everyday Chrome or Edge, without an extension | `attach` | allow remote debugging in `chrome://inspect` ([guide](https://docs.didro.ai/sap-ui-automation/guides/chrome#your-chrome-with-remote-debugging-attach)) |
| no Node.js or local Chrome on your machine, or a containerised run | Docker | run `ghcr.io/didroai/sap-ui-mcp` with headless Chromium and log on through `chrome://inspect` ([guide](https://docs.didro.ai/sap-ui-automation/guides/docker)) |

Then go to [Which agent?](#which-agent).

## Is SAP GUI scripting allowed?

SAP GUI scripting must be on in SAP GUI on your PC **and** allowed on the
SAP system (`sapgui/user_scripting`). `doctor` checks both.

| Scripting | Method | Guide |
| --- | --- | --- |
| allowed, or your basis team can allow it | SAP GUI scripting | [SAP GUI for Windows](https://docs.didro.ai/sap-ui-automation/guides/sap-gui-windows) |
| not allowed | the network reader (DIAG), **experimental**: reads SAP GUI's traffic through a local SAProuter; no SNC | [Network reader](https://docs.didro.ai/sap-ui-automation/guides/network-reader) |

Both methods run by default (`SAP_GUI_METHOD=auto`); set
`SAP_GUI_METHOD=scripting` or `diag` to keep to one. Then go to
[Which agent?](#which-agent).

## Which agent?

| Your agent | Path |
| --- | --- |
| Claude Code, Codex, Cursor, Claude Desktop, Windsurf, VS Code, Gemini CLI, Copilot CLI, OpenCode, Goose, Cline and [more](https://docs.didro.ai/sap-ui-automation/reference/cli#the-agents) | `npx -y sap-ui-automation setup` adds the server and the skills to each one it finds. One client by hand: [Install in your client](https://docs.didro.ai/sap-ui-automation/getting-started/installation) |
| Claude Desktop, one click | the `.mcpb` file from the [latest release](https://github.com/DidroAI/sap-ui-mcp/releases/latest) ([details](https://docs.didro.ai/sap-ui-automation/getting-started/installation#claude-desktop)) |
| Another MCP client | a stdio server with the command `npx -y sap-ui-automation` ([details](https://docs.didro.ai/sap-ui-automation/getting-started/installation#other-clients)) |
| An agent with a shell and no MCP, or you want screens kept out of the chat | the `sap-ui-automation` command line and its skill ([CLI for coding agents](https://docs.didro.ai/sap-ui-automation/guides/cli-for-agents)) |
| No agent: scripts and tests in CI | the SDK and the test runner ([Writing tests](https://docs.didro.ai/sap-ui-automation/guides/sdk-tests)), or replay what an agent recorded ([Recording and replay](https://docs.didro.ai/sap-ui-automation/guides/record-replay)) |

With `SAP_BROWSER=extension`, run `setup --extension` instead of `setup`.

## Then

1. `npx -y sap-ui-automation doctor`: do the `→` step it gives, and run
   it again until it says `Ready.` That comes once it has read an SAP
   screen, so the steps take you to opening SAP and logging on
   ([what each ✗ means](https://docs.didro.ai/sap-ui-automation/faq)).
2. Restart your agent and ask, with that SAP screen still open: *"Look at
   my SAP screen and tell me which fields are required."*
3. Check your write setting. Writes are on by default; `SAP_WRITE=off`
   makes the server read-only. [Your first session](https://docs.didro.ai/sap-ui-automation/getting-started/first-session).

Stuck? Open a [setup problem](https://github.com/DidroAI/sap-ui-mcp/issues/new?template=setup_problem.yml)
with the output of `doctor`.

## What runs where

| Surface | Windows | macOS | Linux | Method |
| --- | --- | --- | --- | --- |
| SAP GUI for Windows | yes | no | no | SAP GUI scripting and the network reader (experimental), both by default |
| Web GUI | yes | yes | yes | Chrome (`launch`, `attach`, `extension`) or Docker |
| Fiori | yes | yes | yes | Chrome (`launch`, `attach`, `extension`) or Docker |
| SAP GUI for Java | no | no | no | not supported |
