Using Remote Templates
Remote templates let you instantly create production-ready AI agents from Git repositories. Any Git repository can be used as a template - the system automatically handles fetching, configuration, and generating your complete agent project.
How It Works
When you use a remote template, the system:
- Fetches the template repository from Git
- Applies intelligent defaults based on repository structure
- Merges template files with base agent infrastructure
- Generates a complete, production-ready agent project
The file merging follows this priority order:
- Base template files (foundation)
- Deployment target files (Cloud Run, Agent Engine, etc.)
- Frontend files (if specified)
- Built-in agent files (adk_base, etc.)
- Remote template files (highest priority)
Quick Start
Using a remote template is simple - just provide any Git repository URL:
# Use any GitHub repository as a template
uvx agent-starter-pack create my-agent -a https://github.com/user/my-template
# Use shorthand notation
uvx agent-starter-pack create my-agent -a github.com/user/my-template@main
# Use official ADK samples
uvx agent-starter-pack create my-agent -a adk@gemini-fullstack
# Use your existing project
uvx agent-starter-pack create my-agent -a local@./path/to/project
The system automatically handles the rest - fetching the template, applying intelligent defaults, and generating your production-ready agent.
Template URL Formats
Full GitHub URLs
# Complete GitHub URL (copy from browser)
uvx agent-starter-pack create my-agent -a https://github.com/my-org/my-repo/tree/main/path-to-template
Shorthand URLs
# GitHub shorthand
uvx agent-starter-pack create my-agent -a github.com/my-org/my-repo/path-to-template
# Specify branch or tag with @
uvx agent-starter-pack create my-agent -a github.com/my-org/my-repo/path-to-template@develop
# Works with GitLab, Bitbucket, etc.
uvx agent-starter-pack create my-agent -a gitlab.com/my-org/my-repo/template@v1.0
ADK Samples Shortcut
A convenient alias for official Google agent examples from the google/adk-samples repository:
# Creates an agent from the 'gemini-fullstack' template in adk-samples
uvx agent-starter-pack create my-agent -a adk@gemini-fullstack
# Other popular ADK samples
uvx agent-starter-pack create my-agent -a adk@data-science
uvx agent-starter-pack create my-agent -a adk@chat-agent
Your Existing Projects
# Use your existing project as source
uvx agent-starter-pack create my-test-agent -a local@./path/to/your/project
uvx agent-starter-pack create my-test-agent -a local@/absolute/path/to/project
Advanced Usage
In-Folder Creation
Create agent files directly in your current directory instead of creating a new subdirectory:
# Standard: creates ./my-agent/ directory
uvx agent-starter-pack create my-agent -a template-url
# In-folder: creates files in current directory
uvx agent-starter-pack create my-agent -a template-url --in-folder
See the create CLI documentation for complete details on the --in-folder
flag.
Enhancing Existing Projects
Use the enhance
command to add agent capabilities to existing projects:
# Add agent functionality to current project
uvx agent-starter-pack enhance adk@gemini-fullstack
See the enhance CLI documentation for complete usage details.
Template Options
All create
command options work with remote templates:
# Specify deployment target
uvx agent-starter-pack create my-agent -a template-url --deployment-target cloud_run
# Include data ingestion
uvx agent-starter-pack create my-agent -a template-url --include-data-ingestion --datastore alloydb
# Custom session storage
uvx agent-starter-pack create my-agent -a template-url --session-type alloydb
# Skip verification checks
uvx agent-starter-pack create my-agent -a template-url --skip-checks
Discovering Templates
List Available Templates
Built-in agents:
uvx agent-starter-pack list
Official ADK samples:
uvx agent-starter-pack list --adk
Templates in a specific repository:
uvx agent-starter-pack list --source https://github.com/my-org/my-templates
Note: Only templates with proper configuration appear in list
results. Templates without explicit configuration still work but aren't discoverable via the list
command.
Browse ADK Samples Interactively
# Launch interactive browser for ADK samples
uvx agent-starter-pack create my-agent
# (Choose to browse ADK samples when prompted)
Troubleshooting
Common Issues
"Remote template not found or access denied"
- Verify the repository URL is correct and publicly accessible
- For private repositories, ensure you have proper Git credentials configured
- Try the full GitHub URL format:
https://github.com/user/repo
"Template generates but has missing dependencies"
- The template may not have a proper
pyproject.toml
- contact the template author - As a workaround, manually add missing dependencies to the generated project
"Command fails with Git errors"
- Ensure Git is installed and configured
- Check your internet connection
- For private repos, verify your SSH keys or access tokens
"Generated project won't run"
- Run
make install
in the generated project to install dependencies - Check the project's README for specific setup instructions
- Ensure you have the required Python version (check
pyproject.toml
)
Getting Help
If you encounter issues with a specific template:
- Check the template's repository README for usage instructions
- Look for issues or discussions in the template's repository
- Contact the template author through the repository's issue tracker
For general Agent Starter Pack issues:
- Visit the Agent Starter Pack repository
- Check the troubleshooting guide
Next Steps
- Using templates: Start with
adk@gemini-fullstack
for a full-featured example - Creating your own: See Creating Remote Templates
- CLI reference: Explore all options in create and enhance commands