Skip to content

Installation

Requires Python 3.12+ and uv. To run agents you also need an API key for Anthropic or OpenAI, or an AWS profile for Bedrock. See Create the project.

Install abt

Create the project folder and a virtual environment inside it. The Quickstart uses this same folder.

mkdir my-agents && cd my-agents
uv venv --python 3.13 && source .venv/bin/activate

Install abt-core from PyPI:

uv pip install "abt-core[all]"
abt --version

[all] pulls in every optional integration so you don't hit missing-dependency errors later. To install less, name the extras you need, for example "abt-core[anthropic,serve]".

Extra Use when
bedrock Amazon Bedrock models — see Using Amazon Bedrock
openai OpenAI models
anthropic Anthropic (Claude) models
confluence {{ context.confluence(...) }} compile-time context — see Context methods; also required for the confluence exposure dispatcher and the confluence_search retriever
slack slack_thread source / slack exposure / slack_search retriever
jira jira_issue source / jira exposure / jira_search retriever
databricks Databricks SDK, used by the Databricks tools
checkpoint-sqlite Persistent local checkpoint backend (SQLite). See Checkpointing.
checkpoint-bedrock Persistent cloud checkpoint backend (AWS Bedrock AgentCore Memory, AgentCoreMemorySaver). See Checkpointing.
checkpoint-dynamodb DynamoDB checkpoint backend. See Checkpointing backends.
approvals-dynamodb DynamoDB approval store. Adds no packages (boto3 is a core dependency); see DynamoDB store.
serve abt docs serve (the project's catalog and lineage UI)
queue Redis-backed dispatch queue for abt watch
web-search Keyless web_search retriever (see Retrievers)
observability OpenTelemetry OTLP export for compile/run spans and metrics. See Observability.
braintrust Braintrust LangChain tracing for agent streams. See Observability.
collapse, quickjs Experimental message collapse and code interpreter

A model provider needs its extra: openai: models need openai, bedrock_converse: models need bedrock. A bare install has neither, so abt init --provider openai prints the install command, and abt doctor reports missing_provider_extra until you run it. Anthropic models work from a bare install.

First-run download

abt counts tokens locally with tiktoken, which downloads its cl100k_base vocabulary (about 1.7 MB) from openaipublic.blob.core.windows.net the first time it runs and caches it in $TMPDIR/data-gym-cache. Set TIKTOKEN_CACHE_DIR to keep the cache somewhere permanent, or to a directory you copied the cache into for an offline machine. When the download fails, abt logs one warning and estimates tokens as characters / 4; abt doctor and abt run keep working, with rougher counts.

Note

abt deps only fetches packages (git-tools, gh-tools, …); it does not install Python dependencies. The SDKs behind the Slack, Atlassian and Databricks tools come from the slack, jira, confluence and databricks extras above.

Create the project

abt init is the first step of the Quickstart, so run it there, in my-agents. Two things to know before you do:

  • Run it once per folder. If abt.yaml already exists, abt init asks once, then adds only the missing files and leaves existing ones untouched. In a non-interactive shell (CI, scripts), --no-input does the same without asking, and --force overwrites existing ones.
  • With no flags it writes an Anthropic starter. Use abt init --provider openai or abt init --provider bedrock for the other providers. Bedrock is covered below.

abt init writes a profiles.yaml starter for the provider. The profile's top-level key is the folder name, and abt.yaml points at it with profile:. profiles.yaml is listed in the generated .gitignore.

The starters use these default models, which you can change with model_id in profiles.yaml:

Provider Default model_id API key read from
anthropic (default) anthropic:claude-haiku-5-5 ANTHROPIC_API_KEY
openai openai:gpt-4.1-mini OPENAI_API_KEY
bedrock bedrock_converse:eu.anthropic.claude-haiku-5-5 none (AWS profile)

Examples in these docs use the Anthropic and Bedrock defaults above. A page names another model only when the example needs it, such as a stronger model for a reviewer or a cheaper one for grading.

The Anthropic and OpenAI starters read the key from the environment, so export it before the first abt compile:

export ANTHROPIC_API_KEY=...   # or OPENAI_API_KEY
abt compile

abt compile runs without the key: it never calls the model, and it resolves credentials: only for agents that use them. abt run and abt doctor --deep need the key and stop with Missing API key for Anthropic. Set 'api_key' under credentials.anthropic in profiles.yaml or the ANTHROPIC_API_KEY environment variable. without it.

Using an AI gateway

To send model calls through a gateway such as Bifrost or LiteLLM, set base_url under the provider's credentials in profiles.yaml. The starter has this line commented out:

credentials:
  anthropic:
    api_key: "{{ env_var('ANTHROPIC_API_KEY') }}"
    base_url: https://your-gateway.example.com/anthropic

For OpenAI, set base_url under credentials.openai instead.

Using Amazon Bedrock

abt init --provider bedrock writes a profiles.yaml like this:

my-agents:                       # your folder name
  target: dev
  outputs:
    dev:
      model_id: bedrock_converse:eu.anthropic.claude-haiku-5-5
      region: eu-central-1
      env:
        AWS_PROFILE: <your-aws-profile>   # placeholder: replace it with a profile from ~/.aws/config
        AWS_REGION: eu-central-1

abt init writes mock/developer in that slot, which is only a placeholder and not a real profile. Replace it with a profile that can call Bedrock in that region (aws sts get-caller-identity --profile <name> should succeed), and make sure model access for the chosen model is enabled in your AWS account. The model_id after bedrock_converse: is a Bedrock model or inference-profile ID. No API key is needed.

Next: Quickstart — first agent and run.