Skip to content

Setup & Models

The AI Agent needs an AI provider to talk to. Settings → AI Agent has a Model Provider toggle: Anthropic (Claude models, the default), OpenAI-compatible, which covers Ollama, OpenAI, OpenRouter, or any other endpoint that speaks the OpenAI API, or Anthropic gateway, for a company gateway that speaks Anthropic’s own API at an address you choose. Pick whichever fits your needs, cost, and data-privacy requirements. You can switch providers at any time — your conversation history stays intact.

Provider Choose it if Key
Anthropic You want Claude models and have your own Anthropic API key Anthropic API key
OpenAI-compatible You want a local model (Ollama), OpenAI’s models, or hosted models through OpenRouter or another endpoint that speaks the OpenAI API Optional for a local Ollama, otherwise the provider’s key
Anthropic gateway Your company gives you a gateway address and key for Anthropic models The gateway’s key

Select your provider in the tabs below. Each tab shows the steps for that provider only, so the page changes when you switch tabs.

  1. Go to console.anthropic.com and create an account (or sign in).

  2. Navigate to API Keys and click Create Key.

  3. Give the key a name (e.g. s7-plc-buddy) and copy it — you won’t be able to see it again.

  4. Add a payment method under Billing if you haven’t already. Anthropic uses pay-as-you-go pricing; typical usage in S7 PLC Buddy costs a few cents per session.

  1. Open Settings → AI Agent.

  2. Make sure Anthropic is selected in the Model Provider toggle.

  3. Paste your API key into the API Key field and click Save. The key is encrypted and stored locally using the Windows Data Protection API (DPAPI), and is never logged or transmitted to S7 PLC Buddy’s servers.

Model Best for Extended thinking
Claude Opus 5 (recommended) Complex reasoning, multi-step diagnostics, code explanation Yes
Claude Sonnet 5 (default) Faster responses, everyday questions, lower cost Yes
Claude Haiku 4.5 Quickest and cheapest, simple lookups No

A Custom… option in the model dropdown lets you enter any other model ID directly, in case a newer model isn’t listed yet. See the in-app Model list & pricing link for Anthropic’s current lineup.

The OpenAI-compatible provider and the Anthropic gateway both take a Base URL, but they add different endings to it. Getting this wrong is the most common reason for a 404 error.

Provider Enter a Base URL like The app adds Do not
OpenAI-compatible https://api.openai.com/v1 /responses leave out the /v1 (or whatever path your provider documents)
Anthropic gateway https://your-gateway.example.com /v1/messages end it with /v1

If the address is wrong, the chat shows a message that names the Base URL and says which form it needs.

The AI Agent can read and write files in a workspace folder on your PC — useful for saving SCL migration output, exported reports, or reference documents the agent can consult. This works the same way regardless of which AI provider you choose.

Set the workspace folder in Settings → AI Agent → Workspace. The default is ~/Documents/S7 PLC Buddy.

The agent can:

  • Read files you place in the workspace (e.g. datasheet PDFs, SCL source files)
  • Write output files (migration results, structured summaries)
  • List what’s in the folder