Skip to main content

Prerequisites

  • Java 17+
  • Maven 3.9+ (or use the Maven wrapper)
  • A CLI agent installed and authenticated:

1. Add the Dependency

Pick your provider. You need the agent model module for your provider:

2. Create an Agent and Run a Task

No Spring Boot required. Build a model, create a client, run a goal:

3. Run It

The agent will create hello.txt in your working directory.

With Spring Boot

If you’re building a Spring Boot application, use the starter dependencies instead. They auto-configure the AgentApi and provide an injectable AgentClient.Builder:
Configuration goes in application.yml:

Next Steps