Skip to main content
Model Connections tell agents which model to use, where it is hosted, and how to authenticate. Each entry is reusable across multiple agents in your workspace.

Adding a model connection

Click Add Model Connection and fill in the form: Studio configures the technical connection for you. You choose where the model lives; agents reference the connection by name.

Connection types

For local or self-hosted OpenAI-compatible servers (Ollama, vLLM, TGI), choose Custom endpoint and set the full base URL (e.g., http://localhost:11434/v1).

Credentials become secrets

When you save a model connection with a new API key, Studio:
  1. Stores the key in the Registry secrets store with a suggested name (e.g., OPENAI_API_KEY, OPENSHIFT_AI_API_KEY)
  2. References the secret in the connection config — the raw key is never stored in plain text
See Secrets for how this works. To rotate a key: Edit the connection and enter a new secret value. All agents using that connection pick up the new key automatically.

Endpoint guidance

Using connections in agents

When creating or editing an agent, select an existing model connection from the inference tab. You do not re-enter credentials — agents inherit authentication from the connection.

Next steps

Creating an Agent

Once you have a model connection, you are ready to create your first agent.