Skip to main content
This guide is for developers and AI engineers who build Atlas AI agents and want a local, file-based workflow with @cognite/cli. Following the steps below, you will scaffold an agent project, push a draft to Cognite Data Fusion (CDF), run evaluation cases, and publish the agent for users.
Requires @cognite/cli 1.10.0 or later. Use npx @cognite/cli@latest so you pick up the agents command group.

Prerequisites

  • Node.js v18 or later
  • A CDF project where you can create Atlas AI agents
  • Basic familiarity with the terminal

Build your first agent

1

Verify the CLI

Confirm @cognite/cli@latest includes the agents command:
You see a version of 1.10.0 or later, and agents lists subcommands such as create, push, and eval.
2

Authenticate

Sign in so the CLI can call your CDF project. Prefer a persisted session when available:
Alternatively, pass browser auth on each command with --interactive, --base-url, --project, and optionally --org. See the command reference.
3

Create a new agent project

Run the interactive scaffolder:
You are prompted for display name, description, model, and related fields.For scripts or CI, pass flags instead of prompts:
A new my-agent directory exists with my-agent.agent.yaml, eval/eval.yaml, README.md, and AGENTS.md.
4

Push a draft agent

From the agent directory, upsert the local <name>.agent.yaml to CDF as a draft:
The command completes without errors and reports that the agent was pushed.
5

Open the agent in CDF

Open the agent in the Atlas AI Agent builder for interactive testing:
Use --upsert to push local changes before opening.
6

Run evaluation cases

The scaffold includes starter cases in eval/eval.yaml. cognite agents eval runs against the deployed agent, so push first (or use --upsert):
The run prints per-case results and ends with N/N cases met expectations (or reports failures to fix).
Edit eval/eval.yaml to match your agent’s behavior. See Agent evaluation cases for scorers and schema details.
7

Publish the agent

When you are ready for users to see the agent:
Use agents unpublish to remove production visibility while keeping the draft.

Project layout

Next steps

Last modified on August 21, 2026