GitHub Actions
Run Station AI agents directly in your GitHub workflows without installing Station locally. The station-action supports three modes for loading agents.Quick Start
The easiest way to add a Station agent workflow to your repository is using the CLI:- Ask how you want to provide agents (CloudShip bundle ID or local environment)
- Help you select an agent to run
- Configure the workflow trigger (push, PR, schedule, manual)
- Generate
.github/workflows/station-agent.yml - Tell you which GitHub secrets to configure
Manual Setup
Alternatively, you can manually create the workflow. The simplest approach is using a CloudShip bundle ID:Agent Source Modes
Station action supports three ways to load agents:- Bundle ID (Recommended)
- Bundle URL
- Local Environment
Use a bundle published to CloudShip. This is the cleanest approach - no Station files need to be committed to your repository.Step 1: Publish your bundle to CloudShipFrom your local Station workspace:Step 2: Use the bundle ID in your workflow
Get your CloudShip API key from app.cloudshipai.com under Settings > API Keys.
Action Inputs
*At least one of
bundle-id, bundle-url, or environment must be specified. If none are provided, the action looks for a local environments/default folder.AI Provider Configuration
- OpenAI
- Anthropic
- Google Gemini
Complete Examples
Analytics Reporter
Run a PostHog analytics agent to summarize your dashboards:PR Code Review
Review pull requests automatically:Security Scan on Push
Scan for security issues on every push:Publishing Bundles to CloudShip
To use bundle-id mode, first publish your agents to CloudShip:Build-Time Actions
Station also provides reusable actions for building bundles and Docker images.Build Bundle
Create distributable bundles from environments:Build Docker Image
Build and push Docker images:Setup Station CLI
Install Station CLI without running an agent:Best Practices
Use bundle-id mode for production
Use bundle-id mode for production
Bundle-id mode keeps your repository clean - no Station configuration files to maintain. Agents are versioned separately in CloudShip.
Store API keys as GitHub secrets
Store API keys as GitHub secrets
Never hardcode API keys. Use GitHub secrets:
Set appropriate timeouts
Set appropriate timeouts
Complex tasks may need longer timeouts:
Use workflow_dispatch for testing
Use workflow_dispatch for testing
Add manual trigger for easy testing:
Troubleshooting
Agent not found
Agent not found
Ensure the agent name matches exactly (case-sensitive). List available agents:
Bundle download failed
Bundle download failed
For bundle-id mode, verify:
cloudship-api-keyis set correctly- Bundle ID is valid and not deleted
- Your CloudShip account has access to the bundle
MCP tools not available
MCP tools not available
Ensure required environment variables are passed:
Next Steps
- Bundles - Learn more about packaging agents
- GitOps Workflow - Version control your agents
- Docker Deployment - Container deployment options

