> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> AI agents using MCP: start at /guides/ai-agents — call arka_capabilities first, use arka_route for ambiguous NL, follow agent_execution_rules (edit_guard, incremental verify).
> Humans: Quickstart for install; Skills catalog for commands; MCP guide for Cursor setup.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# Coding skills को Railway पर deploy करें

> Arka के coding/devtool skills को Railway पर एक सुरक्षित hosted profile के साथ host करें।

Arka Railway पर एक hosted, coding-only API चला सकता है। यह profile repo/devtool
workflows के लिए है जैसे repo health, CI, PR context, route audit, review,
repo maps, और GitHub Actions checks। Desktop/media/personal skills disabled
रहते हैं।

## क्या deploy होता है

Railway profile उपयोग करता है:

* `Dockerfile`
* `railway.toml`
* `ARKA_REMOTE_PROFILE=coding`
* `ARKA_HOSTED_MODE=1`
* `ARKA_MCP_ENABLE_PERSONAL_SKILLS=0`

HTTP API निम्नलिखित expose करता है:

| Endpoint         | उपयोग                                       |
| ---------------- | ------------------------------------------- |
| `GET /v1/health` | health check                                |
| `POST /v1/agent` | एक hosted-safe coding/devtool request चलाएँ |

## Deploy

Railway CLI install और authenticate करें:

```bash theme={null}
npm i -g @railway/cli
railway login
```

इस repo से एक Railway project बनाएँ:

```bash theme={null}
railway init
railway up
```

या Arka के माध्यम से preview करें:

```bash theme={null}
arka deploy --platform railway --json
arka deploy --platform railway --yes
```

## आवश्यक variables

इन्हें Railway Variables में set करें:

```bash theme={null}
ARKA_HOSTED_MODE=1
ARKA_REMOTE_PROFILE=coding
ARKA_MCP_ENABLE_PERSONAL_SKILLS=0
REMOTE_HOST=0.0.0.0
REMOTE_TOKEN=<long-random-token>
```

स्थानीय रूप से एक token generate करें:

```bash theme={null}
python - <<'PY'
arka "import secrets"
arka "print(secrets.token_urlsafe(32))"
arka "PY"
```

Optional provider/integration keys:

```bash theme={null}
OPENAI_API_KEY=...
OPENROUTER_API_KEY=...
GITHUB_TOKEN=...
```

## Hosted API call करें

```bash theme={null}
curl -sS "$RAILWAY_URL/v1/health"

curl -sS "$RAILWAY_URL/v1/agent" \
  -H "Authorization: Bearer $REMOTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"check repo health","remote_speak":false}'
```

या Arka के terminal client का उपयोग करें:

```bash theme={null}
export ARKA_BACKEND_URL="$RAILWAY_URL"
export ARKA_BACKEND_TOKEN="$REMOTE_TOKEN"

arka backend status
arka backend ask "hi"
arka backend ask "init https://github.com/org/repo as a workspace"
arka backend ask "check repo health"
arka backend media ./recordings/bug.png
```

Private GitHub repos के लिए, Railway पर `GH_TOKEN` या `GITHUB_TOKEN` set करें
और redeploy करें। Local terminal users `gh auth login` के साथ GitHub को
authenticate कर सकते हैं।

Coding profile केवल developer-safe skill heads की अनुमति देता है जैसे
`repo_health`, `lint_project`, `pr_check`, `review`, `route_audit`, `ci`,
`github_actions`, `repo_context`, `repo_map`, `repo_graph`, `workspace`,
`structure`, `security`, और plugin/skill inspection commands।

यदि कोई request desktop/media/personal skill पर route होती है, तो server उसे
block करता है और allowed capability list लौटाता है।


## Related topics

- [AI agent guide — MCP पर Arka उपयोग करें](/hi/guides/ai-agents.md)
- [n8n workflow automation](/hi/guides/n8n.md)
- [Arka के साथ कोड कैसे लिखें](/hi/guides/code-with-arka.md)
- [Quickstart: Arka इंस्टॉल करें और अपना पहला कमांड चलाएँ](/hi/quickstart.md)
- [Arka को Cloud और Web Platforms पर Deploy करें](/hi/guides/deploy.md)
