ethereumdegen/stark-bot/railway-cli
Claude Code and agent skill by ethereumdegen/stark-bot
- community
Checking that the SKILL.md file is still in the repository.
Manage Railway infrastructure - deploy services, manage environment variables, and monitor deployments using the Railway CLI.
Install
npx vskill@latest install ethereumdegen/stark-bot/railway-cliSKILL.md
Railway Integration
Manage your Railway infrastructure using the Railway CLI. Deploy services, manage environment variables, check deployment status, and more.
Authentication
First, check if RAILWAY_API_TOKEN is configured:
If not configured, ask the user to create a token at https://railway.com/account/tokens and add it in Settings > API Keys as RAILWAY_API_TOKEN.
The RAILWAY_API_TOKEN env var is automatically injected into all exec commands.
Prerequisites
Ensure the Railway CLI is installed:
Railway CLI is installed by the railway_cli module. If missing, reinstall via manage_modules(action="install", name="railway_cli").
Operations
1. Verify Authentication
Use railway list to verify auth (works with all token types — account, workspace, and project tokens). Do NOT use railway whoami as it only works with account tokens and will fail with workspace/project tokens.
2. List Projects
3. Get Project Status
After linking to a project (see operation #4), check its status:
4. Link to Existing Project
Link the current workspace to a project so subsequent commands target it. Use --project and --environment flags to avoid interactive prompts:
5. Get Deployments / Logs
View recent deployment logs:
View build logs:
6. Trigger Redeploy
IMPORTANT: Confirm with the user before triggering a redeploy.
7. Get Environment Variables
8. Set Environment Variables
IMPORTANT: Confirm with the user before modifying environment variables.
For multiple variables:
9. Create Railway Domain
10. Deploy from GitHub Repo
Deploy a GitHub repository to Railway. This is a multi-step workflow.
IMPORTANT: Confirm the repo URL, project name, and branch with the user before proceeding.
Step 1: Define the tasks
Call define_tasks with all steps upfront so progress is tracked:
Step 2: Create a new project
This creates a project and links the current workspace to it.
Tip: If deploying into an existing project, use operation #4 (link) instead.
Step 3: Add service from GitHub repo
Option A: GitHub repo link (requires Railway GitHub App)
Replace OWNER/REPO with the GitHub repository (e.g. ethereumdegen/x402-gif-machine). Railway will automatically trigger an initial deployment.
If this fails with "repo not found", the Railway GitHub App doesn't have access. Fall back to Option B.
Option B: Clone and deploy (no GitHub App needed)
Clone the repo locally and deploy with railway up:
Then link and deploy from the cloned directory:
Note: Option B deploys a snapshot. It won't auto-deploy on new commits like Option A does. For auto-deploy, the user needs to configure the Railway GitHub App on their repo (GitHub → Settings → Applications → Railway → Configure).
Step 4: Generate a public domain
Step 5: Set environment variables (if needed)
Use operation #8 to set any env vars the service needs.
Step 6: Verify deployment
Check the deployment logs to confirm it built and deployed successfully:
Then check runtime logs:
11. Deploy from Local Directory
Deploy the current working directory to Railway:
Use --detach to avoid blocking while the build runs. Check logs separately.
12. Delete Service
IMPORTANT: Confirm with the user before deleting.
Error Handling
| Error | Cause | Solution | |
|---|---|---|---|
Unauthorized on whoami | whoami only works with Account tokens, not workspace/project tokens | Use railway list instead to verify auth, or create an Account Token (select "No workspace") | |
Unauthorized on other commands | Token is invalid/expired or wrong scope | Regenerate token at https://railway.com/account/tokens | |
Cannot login in non-interactive mode | CLI requires browser login | Use RAILWAY_API_TOKEN env var instead (already injected by exec) | |
No project linked | CLI doesn't know which project to target | Use railway link --project ID --environment ID first | |
| Service creation fails | Railway GitHub app not authorized | Install at https://railway.com/account/github |
Token Types
- Account tokens (
RAILWAY_API_TOKEN) — full access, works with CLI, preferred - Project tokens — scoped to one environment, limited CLI support
Typical Workflow
- Verify auth —
railway list(NOTwhoami— it only works with account tokens) - List projects —
railway list - Link to project —
railway link --project ID --environment ID - Check status —
railway status - Take action — redeploy, update env vars, etc. (confirm with user first)
Best Practices
- Always verify auth first before running other commands
- Link before acting — use
railway linkso commands target the right project - Confirm mutations — always ask the user before redeploying or changing env vars
- Use `--json` flag where available for structured output
- Be careful with env vars — they may contain secrets, don't log values unnecessarily
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmodules/railway_cli/skill.md
Popularity
- Repository stars
- 46
- Repository forks
- 20
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ethereumdegen/stark-bot/railway-cli)