Skip to content
Agentmart
Submit a tool

railway-api

Correct way to call the Railway GraphQL API for the Open Manus fleet (verify deploys, read service variables, list services).

Skill by GarrettRoi

IndexedMIT
Write a review

Chalk Labs

Need help deploying railway-api?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/garrettroi-railway-api

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Correct way to call the Railway GraphQL API for the Open Manus fleet (verify deploys, read service variables, list services). Use whenever Railway API access is needed — deploy verification, token sync, service env vars. Covers the token-access gotcha that causes false "Not Authorized" errors.

Use cases: backend, devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/railway-api

What's inside

Skill name
railway-api
Description
Correct way to call the Railway GraphQL API for the Open Manus fleet (verify deploys, read service variables, list services). Use whenever Railway API access is needed — deploy verification, token sync, service env vars. Covers the token-access gotcha that causes false "Not Authorized" errors.
License
MIT
Instructions
56 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Railway API Access (Open Manus fleet)

## The one rule that matters

**Always read `RAILWAY_TOKEN` from the shell environment (`$RAILWAY_TOKEN` via ShellExec + curl), NOT via the `requestSecrets` sandbox callback.** The sandbox path has returned an EMPTY string for this secret (observed July 2026), producing misleading "Not Authorized" errors even with a perfectly valid token. The token is a full account token and works fine.

Never print or echo the token value. Check presence with `[ -n "$RAILWAY_TOKEN" ]`.

## Working pattern

```bash
curl -s -X POST https://backboard.railway.com/graphql/v2 \
  -H "Authorization: Bearer $RAILWAY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query":"query { me { name } }"}'
```

- Endpoint: `https://backboard.railway.com/graphql/v2`
- Auth: `Authorization: Bearer $RAILWAY_TOKEN` (account token — NOT a project token; do not use the `Project-Access-Token` header)
- Sanity check: the `me { name }` query. If it fails, the token itself is bad; if it works but a scoped query fails, the IDs are wrong.

## Fleet IDs

- Project: `ea6649cb-ac92-44fd-bea9-3fbf6ad5e473`
- Environment: `e57f146e-e0b8-4d5c-a443-c30e0baf016f`
- agent-lexi service: `08006723-2b99-4fa5-aec0-f4afe96a242c`
- Other agent service IDs: query `project(id: ...) { services { edges { node { id name } } } }`

## Verify a deploy (required after every push to `deploy`)

```bash
curl -s -X POST https://backboard.railway.com/graphql/v2 \
  -H "Authorization: Bearer $RAILWAY_TOKEN" -H "Content-Type: application/json" \
  -d '{"query":"query { deployments(first: 3, input: { projectId: \"ea6649cb-ac92-44fd-bea9-3fbf6ad5e473\", serviceId: \"<SERVICE_ID>\", environmentId: \"e57f146e-e0b8-4d5c-a443-c30e0baf016f\" }) { edges { node { status createdAt meta } } } }"}'
```

A fix is only deployed when the newest deployment has `status: SUCCESS` **and** `meta.commitHash` matches the pushed commit. Pipe through python for readable output:

```bash
... | .pythonlibs/bin/python3 -c "import json,sys; d=json.load(sys.stdin); [print(e['node']['status'], e['node']['createdAt'], (e['node'].get('meta') or {}).get('commitHash','')[:7]) for e in d['data']['deployments']['edges']]"
```

## Read service variables (e.g. dashboard basic-auth creds for live verification)

```graphql
query { variables(projectId: "...", environmentId: "...", serviceId: "...") }
```

Returns a JSON map. Never display secret values; use them directly in follow-up requests.

## Other gotchas

- Shell `$VAR` inside single-quoted JSON payloads does not expand — build payloads with double quotes or heredocs carefully.
- `gitPush` callback can silently no-op the commit step; if `git log` doesn't show your commit, `git add && git commit` in the shell, then call `gitPush` again (shell `git push` lacks auth).

From GarrettRoi/open-manus, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 5, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from GarrettRoi

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get railway-api running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying railway-api?

CallGet help
Cite this page

railway-api skill. Agent Mart. https://agentmart.dev/skills/garrettroi-railway-api (last updated 2026-10-24)