Deploying to Kastrax Cloud ✅
This page describes the deployment process for Kastrax applications to Kastrax Cloud using GitHub integration.
Prerequisites ✅
- A GitHub account
- A GitHub repository containing a Kastrax application
- Access to Kastrax Cloud
Deployment Process ✅
Kastrax Cloud uses a Git-based deployment workflow similar to platforms like Vercel and Netlify:
-
Import GitHub Repository
- From the Projects dashboard, click “Add new”
- Select the repository containing your Kastrax application
- Click “Import” next to the desired repository
-
Configure Deployment Settings
- Set the project name (defaults to repository name)
- Select branch to deploy (typically
main
) - Configure the Kastrax directory path (defaults to
src/kastrax
) - Add necessary environment variables (like API keys)
-
Deploy from Git
- After initial configuration, deployments are triggered by pushes to the selected branch
- Kastrax Cloud automatically builds and deploys your application
- Each deployment creates an atomic snapshot of your agents and workflows
Automatic Deployments ✅
Kastrax Cloud follows a Git-driven workflow:
- Make changes to your Kastrax application locally
- Commit changes to the
main
branch - Push to GitHub
- Kastrax Cloud automatically detects the push and creates a new deployment
- Once the build completes, your application is live
Deployment Domains ✅
Each project receives two URLs:
-
Project-specific domain:
https://[project-name].kastrax.cloud
- Example:
https://gray-acoustic-helicopter.kastrax.cloud
- Example:
-
Deployment-specific domain:
https://[deployment-id].kastrax.cloud
- Example:
https://young-loud-caravan-6156280f-ad56-4ec8-9701-6bb5271fd73d.kastrax.cloud
- Example:
These URLs provide direct access to your deployed agents and workflows.
Viewing Deployments ✅
The deployments section in the dashboard shows:
- Title: Deployment identifier (based on commit hash)
- Status: Current state (success or archived)
- Branch: The branch used (typically
main
) - Commit: The Git commit hash
- Updated At: Timestamp of the deployment
Each deployment represents an atomic snapshot of your Kastrax application at a specific point in time.
Interacting with Agents ✅
After deployment, interact with your agents:
- Navigate to your project in the dashboard
- Go to the Agents section
- Select an agent to view its details and interface
- Use the Chat tab to communicate with your agent
- View the agent’s configuration in the right panel:
- Model information (e.g., OpenAI)
- Available tools (e.g., getWeather)
- Complete system prompt
- Use suggested prompts (like “What capabilities do you have?”) or enter custom messages
The interface shows the agent’s branch (typically “main”) and indicates whether conversation memory is enabled.
Monitoring Logs ✅
The Logs section provides detailed information about your application:
- Time: When the log entry was created
- Level: Log level (info, debug)
- Hostname: Server identification
- Message: Detailed log information, including:
- API initialization
- Storage connections
- Agent and workflow activity
These logs help debug and monitor your application’s behavior in the production environment.
Workflows ✅
The Workflows section allows you to view and interact with your deployed workflows:
- View all workflows in your project
- Examine workflow structure and steps
- Access execution history and performance data
Database Usage ✅
Kastrax Cloud tracks database utilization metrics:
- Number of reads
- Number of writes
- Storage used (MB)
These metrics appear in the project overview, helping you monitor resource consumption.
Deployment Configuration ✅
Configure your deployment through the dashboard:
- Navigate to your project settings
- Set environment variables (like
OPENAI_API_KEY
) - Configure project-specific settings
Changes to configuration require a new deployment to take effect.
Next Steps ✅
After deployment, trace and monitor execution using the observability tools.