Quickstart
This chapter provides a concise guide to the initial configuration and getting started with TwinCAT CoAgent in a production environment.
First, install the Workload TE 1700 | TwinCAT 3 CoAgent using the TwinCAT Package Manager, as described in the Installation chapter.
Open CoAgent:
- Open the TwinCAT XAE Shell.
- Open the ChatWindow via the menu TwinCAT → CoAgent → ChatWindow.
- Position the ChatWindow where you want it.
Configuring the provider
- 1. Open the settings by clicking the Settings button in the header bar.

The settings page opens.
- 2. Go to the Providers tab.
- 3. Click + Add Provider.

- You can now select the provider type.
- 4. From the Provider Type drop-down menu, select the desired LLM provider. The following screenshots illustrate the procedure using a local Ollama server as an example.

- You can now set the display name.
- 5. In the Name field, enter a display name for this provider.

- 6. Enter your provider’s connection information.
- Depending on the type of provider, different fields are required:
Local providers (e.g., Ollama): Server URL of the local instance
Cloud providers (e.g., OpenAI, Anthropic, Azure): API key and, if applicable, endpoint URL - Make sure that access to the CoAgent settings is restricted to authorized users.
- 7. Then click Check Connection to retrieve the available models. This step does not yet evaluate a model’s suitability for chat.

- If the model query was successful, proceed to step 8.
- If the Check Connection test fails, check the following:
![]() | Data security API keys for cloud providers are stored in the settings. |
- Endpoint: Is the server URL accessible? A ping to the hostname can test the network connection.
- API Key: Did you enter the key correctly? If necessary, contact the appropriate IT department or administrator.
- Model Query: Does the provider support retrieving a list of models? Without this function, models must be added manually after saving (see the Add a Provider chapter).
- 8. After a successful model query, the Import Discovered Models dialog box opens. It lists the models reported by the provider. Select the desired models and click Import.

- 9. Click Add Provider to Roster to activate the provider.
- The provider now appears in the list of providers.


Create a new chat
Click the + button in the header bar to create a new chat.
Select an agent
Use the Select Agent drop-down menu in the header bar to select the desired agent (e.g., PLC).
Select a model
Use the Model drop-down menu in the input area to select the desired LLM model. The drop-down menu displays all models configured in the active provider.
Enter and send a message
- 1. Enter your query in the text field.
- 2. Click on the Send button.

- The agent’s response will appear in the chat area.
Review and apply changeset
When the agent creates or modifies PLC code, a changeset bar appears at the bottom of the chat.
Click View Diff to review the suggested changes, and then click Accept All to apply them to the TwinCAT project (see the Changeset Workflow chapter).
