Skip to content

Create your first agent

Configure a provider, connect a tool, create an agent, and start a session.

Configure a provider and a PostgreSQL tool, create an agent in the dashboard, and open its terminal.

Before you start

  • A reachable control plane and a running Industric Operator (see Deploy & operate).
  • Dashboard access to configure the provider, tool, and agent.
  • A reachable PostgreSQL database and a least-privilege account for the tool.
  • The exo CLI installed on your machine, if you want to use the CLI.
  • For the YAML alternatives, kubectl access and an existing adaptive namespace.

Set up the model provider

Runtimes that require model credentials use a configured provider in Industric. Configure a provider compatible with the runtime you intend to use. The dashboard and YAML examples below use ClaudeCode with Anthropic.

In the dashboard, go to Connect > Providers > Add provider: pick Anthropic (Claude) for the ClaudeCode runtime used here, paste the API key, and tick Set as default provider. Validate checks the key before anything is saved.

The Add Provider dialog with Anthropic (Claude) selected
Configure the provider used by the agent.

Create a tool

A tool is a managed connection to an external system. The credential is stored in a Secret; tool output can expose it.

In the dashboard, open Tools and create a tool. Select your deployment and PostgreSQL. Name it analytics-postgres in the adaptive namespace, enter the connection settings, then select Create tool.

The tool creation form with deployment selection and PostgreSQL connection settings, including hostname, port, username, database name, and SSL mode.
Create a PostgreSQL tool through the dashboard.
Create with YAMLApply a Kubernetes manifest instead.

Alternatively, create the Secret with kubectl:

terminal· bash
kubectl -n adaptive create secret generic analytics-pg-creds \
--from-literal=password=<db-password>

Save this as first-tool.yaml. Replace the hostname, username, and database with your connection details:

first-tool.yaml· yaml
1apiVersion: autonomic.sh/v1alpha1
2kind: Tool
3metadata:
4 name: analytics-postgres
5 namespace: adaptive
6spec:
7 type: postgres
8 description: "Analytics Postgres read-replica"
9 tags:
10 - databases
11 - postgres
12 - readonly
13 probe: true
14 config:
15 hostname: pg-analytics.prod.internal
16 port: 5432
17 username: autonomic_ro
18 databaseName: analytics
19 sslMode: require
20 credentialsRef:
21 name: analytics-pg-creds
22 key: password
Read-only by convention
Point Tools at a read replica with a least-privilege DB user. With probe: true the reconciler runs a connectivity check before marking the tool Ready.

Apply it and wait for the probe to pass. Ready means the reconciler reached the database with the credentials you gave it:

terminal· bash
kubectl apply -f first-tool.yaml
kubectl -n adaptive get tools

Example output:

output
NAME TYPE PHASE AGE
analytics-postgres postgres Ready 12s

Create the agent

In the dashboard, create an agent and select your deployment, runtime, and provider. Name it hello-agent in the adaptive namespace. Add the PostgreSQL tool and set the goal to report the five most recent signups, then select Create agent.

The agent creation form with deployment, runtime, provider, MCP server, skill, and tool selection beside the agent goal.
Choose the agent's runtime, capabilities, and goal in the dashboard.
Create with YAMLApply a Kubernetes manifest instead.

This agent declares a runtime, goal, and provider. Choose the model in the provider configuration. Save this as first-agent.yaml:

first-agent.yaml· yaml
1apiVersion: autonomic.sh/v1alpha1
2kind: Agent
3metadata:
4 name: hello-agent
5 namespace: adaptive
6spec:
7 runtime: ClaudeCode
8 phase: Paused
9 goal:
10 inline: |
11 Connect to the analytics database and report the 5 most recent signups.
12 provider:
13 type: anthropic
Check attachments and access
Attach the tool in the agent's dashboard settings and confirm its access. status.effectiveTools lists native runtime and MCP tools, not bootstrap tools or skills. exo agent get uses your platform login and does not need a kubeconfig.

Apply it with kubectl:

terminal· bash
kubectl apply -f first-agent.yaml
kubectl -n adaptive get agent hello-agent

YAML-created agents default to phase: Paused so you can read the configuration before any run spends tokens. Opening a terminal activates the agent and starts its session.

Connect to the agent

Open Agents in the dashboard and select the agent you created. In the sidebar, select Open terminal.

The agent sidebar showing its connected status and the Open terminal button.
Select Open terminal in the agent sidebar.

The terminal opens with your agent's configured runtime. Type a message to start working with the agent.

An agent terminal in the dashboard with the Industric runtime ready to accept a message.
An open agent terminal, shown here with the Industric runtime.

Use the CLI

Sign in to the CLI

Sign in to the CLI to run the agent from your terminal. Already signed in? Skip ahead.

On managed service the endpoint defaults to https://exo.adaptive.live, so run exo login — no --endpoint needed:

terminal· bash
exo login
exo whoami

To point the CLI at your own control plane, pass --endpoint:

terminal· bash
exo login --endpoint https://exo.example.com
exo whoami

Start a CLI session

List your agents to confirm the agent exists. Replace production with your deployment name, then connect:

terminal· bash
exo agent list
exo agent connect production/adaptive/hello-agent

Verify the session

Check that the agent can use the analytics tool and returns the requested signups. Review its output in the terminal or the recorded session; if a tool is missing, check the attachments and access grants.

Create an agent with the CLI

As an alternative to creating the agent in the dashboard, use the CLI wizard. This creates a separate agent; attach the PostgreSQL tool in its dashboard settings if you want it to use the database.

If the wizard's selected runtime requires a provider, select a compatible provider configured above.

Start the interactive agent creator:

terminal· bash
exo agent create

Choose a deployment, name the agent cli-agent, and enter a goal. Follow the prompts to select any required provider and confirm creation.

Connect to the agent:

terminal· bash
exo agent connect cli-agent

The terminal opens with the agent's runtime. If the name is ambiguous, use the deployment and namespace in the agent reference.

Next steps

  • Tools: add more connections and engine-native permissions.
  • Agents: read the full reference for every field.