Prerequisites
- Agent Stack installed (Quickstart)
- Agent wrapped with Agent Stack SDK (Wrap Existing Agents or Build New Agent)
Agent Deploy Process
To deploy your agent to Agent Stack, you need to create a github repository with your agent and then deploy from that repository to Agent Stack.1. Create an Agent github repository
You can quickly create an agent repository by using the Agent Stack starter template. The agentstack-starter template includes everything you need:- Production-ready Dockerfile
- GitHub Actions for automated builds
- Agent Stack deployment configuration
Dockerfile with the following information:
2. Deploy your Agent to Agent Stack
To deploy from your my-agent github repo, run the following with your organization name substituted for myorg:- ✓ Builds your Docker image from github using the provided Dockerfile in the github root directory
- ✓ Copies the image into Agent Stack’s VM
- ✓ Registers it as an available agent
Why “copy into VM”? Agent Stack runs in an isolated VM (Lima on Mac/Linux, WSL on Windows). Even though Docker Desktop builds your image, Agent Stack needs it copied into its VM to run it. The
add command handles this automatically.Github Deploy Options
Theagentstack add command supports various URL formats to specify the repository, version, and location of your agent’s code.
The supported formats include:
- Basic URL:
https://github.com/myorg/myrepo - Git Protocol URL:
git+https://github.com/myorg/myrepo - URL with .git suffix:
https://github.com/myorg/myrepo.git - URL with Version Tag:
https://github.com/myorg/myrepo@v1.0.0 - URL with Branch Name:
https://github.com/myorg/myrepo@my-branch - URL with Subfolder Path:
https://github.com/myorg/myrepo#path=/path/to/agent - Combined Formats:
https://github.com/myorg/myrepo.git@v1.0.0#path=/path/to/agent - Enterprise GitHub:
https://github.mycompany.com/myorg/myrepo
Example
To deploy an agent from a specific branch and subfolder, you would run:- Fetch the
mainbranch of themy-awesome-agentsrepository. - Look for the agent’s
Dockerfileand source code in the/my-agentdirectory. - Build the Docker image and register it with the platform.
Verify Deployment
You can check that your agent is registered by running:Test Your Agent
Test via CLI:http://127.0.0.1:8333
Advanced Options
Two-step build process
If you need more control over the build:Next Steps
Now that your agent is deployed, enhance it with extensions:LLM Service
Change your agent’s LLM at runtime and manage model connections dynamically
Agent Trajectory Visualization
Visualize your agent’s decision-making and interactions over time in the UI
Citations & Source Linking
Display references and link sources for transparency, directly in the UI
Structured Inputs (Forms)
Guide your users to provide consistent information with the form extension