Install agentc, scaffold a project, and compile your first agent.
In this guide you will install the compiler, scaffold a project, build it, and run your agent for the first time. By the end you will have a working binary that answers a question. It should take about ten minutes.
You need two things before you start:
rustup. The default standalone archetype compiles your agent with cargo, so Rust must be available on your build machine. Install it at rustup.rs.Run the installer script. It places the agentc binary in the directory you pass with
--install-dir.
Always verify the contents of any script you execute from the internet. Pass the --dry-run flag to
print the steps the installer would take without performing them.
curl -sSfL https://install.agentc.sh | bash -s -- --install-dir ~/.local/binVerify the installation:
agentc --versionCreate a new project with agentc init:
agentc init my-agent
cd my-agentYou should see:
✓ Created my-agentThis creates a ready-to-build project. The important file is agent.acl, the manifest. Open it to see
what was generated:
build {
archetype = "standalone"
}
providers {
anthropic {
models = ["claude-haiku-4-5"]
config {
api_key = secret(runtime("ANTHROPIC_API_KEY"))
}
}
}
agent "my-agent" {
graph {
type = "react"
}
version = "0.1.0"
description = "A helpful assistant."
prompt = "You are a helpful assistant."
model {
provider = "anthropic"
name = "claude-haiku-4-5"
}
}
http_server {
host = runtime("HTTP_HOST", "127.0.0.1")
port = runtime("HTTP_PORT", 8080)
protocol {
ag_ui {}
}
}This manifest defines a minimal agent with no tools. It uses the standalone archetype, runs on the
ReAct graph, connects to Anthropic, and defines an HTTP server with the AG-UI protocol for later. The
runtime() values, including the API key, are read from the environment when the binary starts, not
baked in at build time.
Compile the agent:
agentc buildThe compiler processes the manifest, prepares any tools, generates a project, and compiles it. When it
finishes, the binary is at artifacts/build/my-agent.
Set your API key and ask the agent a question with the binary's run command:
export ANTHROPIC_API_KEY=your_key_here
./artifacts/build/my-agent run "Hello, who are you?"The agent calls the model and prints its answer, then exits. You have a working agent.
Right now the agent can only talk. In Add your first tool you will give it a tool and watch it get called during a run.
© 2026 pogue.dev. All rights reserved.
CC BY 4.0Search the agentc documentation