Skip to content

Document cloud agents - #1285

Merged
codyde merged 3 commits into
mainfrom
cody/cloud-agents-docs
Aug 7, 2026
Merged

Document cloud agents#1285
codyde merged 3 commits into
mainfrom
cody/cloud-agents-docs

Conversation

@codyde

@codyde codyde commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Docs for cloud agents: persistent VMs running Claude Code, Codex, or Grok CLI with the reader's own credentials.

Depends on railwayapp/cli#1013 for the commands.

New pages

Page Covers
/cloud-agents Definition, target resolution, reuse, lifecycle and billing, credentials per agent, skills sync, variables, preferences file
/cloud-agents/getting-started railway ca setup walkthrough, first launch, managing agents and sessions
/cli/ca Subcommands, options, setup flags, interface, keys, mouse
/cli/code Options, target resolution, credentials, agent arguments, examples

Edited

  • ai.md — cloud agents entry in the integration list
  • agents.md — card in the integration grid, entry in "When to use each"
  • sidebar.ts — cloud agents under AI with its child page, ca and code in the CLI list

Beta treatment

Matches the Priority Boarding precedent in sandboxes.md, feature-flags.md, and cli/sandbox.md:

  • Concept and getting started: <Banner variant="primary"> with "Breaking changes may occur"
  • CLI reference: <Banner variant="info"> noting commands and flags may change in breaking ways
  • Lifecycle section: <Banner variant="warning"> because --keep-awake bills compute with nothing attached

Corrections from pressure testing

Second commit fixes six claims that didn't match the code:

Claim Reality
Setup options "Create a project" / "Bring my skills" / theme previews Those are the interface wizard's. railway ca setup uses "Create a default project", a yes/no skills question plus a directory pick, and a plain theme select
Setup asks four questions The skills question is skipped when nothing of yours is syncable
--project my-project --project takes an ID; --environment takes a name or ID
Local sign-in required for any agent Codex and Grok need one; Claude Code mints in a browser
Agent "may prompt" outside /app Not verifiable from the CLI. Removed
Skills link into "every coding agent's directory" ~/.claude/skills, ~/.codex/skills, ~/.grok/skills

Verified and added: token cache path, minting runs the local claude binary, -y behavior, interface skipped when stdout isn't a terminal, clicks reach the agent only once the pane has the keyboard, sleep-on-quit covers open sessions, skills sync off leaves what's on the agent.

Verification

Claim-by-claim against railwayapp/cli on the shipping branch: command and subcommand names, every flag and its help text, prompt strings, RAILWAY_CA_AGENT, preferences path and fields, skills sources and the 2 MB / 10 MB limits, key bindings, no aliases on railway ca. --idle-timeout doesn't exist on these commands and isn't documented.

Links and anchors checked programmatically. CI Build passes and all four pages render on the preview deploy.

Adds documentation for cloud agents: persistent VMs that run Claude Code,
Codex, or Grok CLI with the reader's own credentials.

New pages:

- `/cloud-agents` — what a cloud agent is, how targets resolve, reuse and
  lifecycle, credential delivery per agent, skills sync, variables, and the
  preferences file
- `/cloud-agents/getting-started` — setup with `railway ca setup`, the first
  launch, and managing agents and sessions from there
- `/cli/ca` — the terminal interface, its subcommands, options, keys, and mouse
  behavior
- `/cli/code` — the launcher, its options, target resolution, and credentials

Every page carries the beta banner used for Priority Boarding features, since
the commands and flags may still change.

Also links cloud agents from the AI landing page and the Railway for Agents
card grid, and adds the sidebar entries.

Verified against the CLI source: command and subcommand names, every flag,
`RAILWAY_CA_AGENT`, the preferences path and fields, the skills source
directories and size limits, and the key bindings.
@railway-app

railway-app Bot commented Aug 7, 2026

Copy link
Copy Markdown

🚅 Deployed to the docs-pr-1285 environment in 🪄 *.railway.com

Service Status Web Updated (UTC)
Docs Frontend ✅ Success (View Logs) Web Aug 7, 2026 at 9:06 pm
7 services not affected by this PR
  • devicons
  • OG
  • Frontend Redis
  • Turnout
  • Meilisearch
  • Geofeed
  • Blog

@railway-app
railway-app Bot temporarily deployed to *.railway.com / docs-pr-1285 August 7, 2026 20:26 Destroyed
Pressure tested every technical claim against the shipping implementation.
Six were wrong:

- The setup flow's options came from the interface's wizard, not from
  `railway ca setup`. The real prompts are "Create a default project", "Use an
  existing project", and "Skip"; skills is a yes/no question followed by a
  directory pick when several hold skills, and it's skipped when there's
  nothing of yours to send; the theme picker has no live preview.
- Setup doesn't always ask four questions, since the skills step can be
  skipped.
- `--project` takes an ID, not a name. The example passed a name.
- Codex and Grok need a completed local sign-in, but Claude Code mints in a
  browser, so the prerequisite was overstated for it.
- The claim that a coding agent "may prompt" before touching files outside
  `/app` isn't verifiable from the CLI. Removed.
- Skills link into the three harness directories by name, not into "every
  coding agent's skills directory".

Also adds what verification turned up as worth stating: the token cache path,
that minting runs the local `claude` binary, that `-y` picks the first detected
agent with skills off, that Railway skips the interface when stdout isn't a
terminal, that clicks reach the agent only once the pane has the keyboard, and
that turning skills sync off leaves what's already on an agent.
@railway-app
railway-app Bot temporarily deployed to *.railway.com / docs-pr-1285 August 7, 2026 20:56 Destroyed
Four places a reader would stumble:

- "machine specification" is internal vocabulary. The credential sections now
  say what a reader can check instead: the credential never becomes a Railway
  variable, part of an image, or a command line argument.
- The image name `cloud-agent-base` said nothing a reader can act on, and "the
  VM configures them" left the actor vague.
- Step 4 of target resolution called `railway ca setup` "the setup flow", which
  reads as a concept rather than the command it is.
- `railway code`'s description promised a local sign-in, which isn't how Claude
  Code works.
@railway-app
railway-app Bot temporarily deployed to *.railway.com / docs-pr-1285 August 7, 2026 21:05 Destroyed
@codyde
codyde merged commit a000cd4 into main Aug 7, 2026
7 checks passed
@codyde
codyde deleted the cody/cloud-agents-docs branch August 7, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant