af server
Run the Agentfield control plane locally
af server
Start the Agentfield control plane with APIs, identity, memory, and orchestration
Usage
af server [options]Description
The af server command runs the Agentfield control plane locally. It powers service discovery, memory coordination, workflow orchestration, and observability for your agents.
Key Flags
| Flag | Description |
|---|---|
--port <number> | Port for the HTTP interface (default: 8080) |
--ui | Launch the Agentfield UI alongside the control plane |
--config <path> | Path to a custom server configuration file |
--vc-execution | Force-enable generating Verifiable Credentials for all executions |
--no-vc-execution | Disable generating Verifiable Credentials for all executions |
--storage-mode <mode> | Override the storage backend (local or postgres) |
--postgres-url <url> | PostgreSQL connection URL (implies --storage-mode=postgres) |
Examples
# Start the control plane with the default configuration
af server
# Run on a custom port
af server --port 9090
# Boot the control plane with a specific config file
af server --config ./agentfield-server.yaml
# Force-enable Verifiable Credentials for all executions
af server --vc-execution
# Disable Verifiable Credentials for all executions
af server --no-vc-execution
# Start with PostgreSQL storage backend
af server --postgres-url postgresql://user:password@localhost:5432/agentfieldVerifiable Credentials
By default, Agentfield generates Verifiable Credentials (VCs) for all reasoner and skill executions. You can control this behavior at three levels:
- Server Level - Use
--vc-executionor--no-vc-executionflags to set the platform-wide default - Agent Node Level - Set
vc_enabledparameter when creating an Agent instance - Function Level - Use
vc_enabledparameter in@app.reasoner()or@app.skill()decorators
Priority: decorator → agent node → server flag → platform default (enabled)