{"id":50235499,"url":"https://github.com/m-abdelwahab/codex-anywhere","last_synced_at":"2026-05-26T19:03:49.347Z","repository":{"id":358951458,"uuid":"1240213577","full_name":"m-abdelwahab/codex-anywhere","owner":"m-abdelwahab","description":"Run OpenAI Codex from a persistent Railway server and connect securely from desktop or mobile over SSH.","archived":false,"fork":false,"pushed_at":"2026-05-19T18:54:40.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-19T21:56:08.070Z","etag":null,"topics":["codex","dev-environment","railway","remote-development","ssh"],"latest_commit_sha":null,"homepage":"https://railway.com/deploy/5YS7QJ?referralCode=thisismahmoud\u0026utm_medium=integration\u0026utm_source=template\u0026utm_campaign=generic","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-abdelwahab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-15T22:12:40.000Z","updated_at":"2026-05-19T18:54:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/m-abdelwahab/codex-anywhere","commit_stats":null,"previous_names":["m-abdelwahab/codex-anywhere"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/m-abdelwahab/codex-anywhere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-abdelwahab%2Fcodex-anywhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-abdelwahab%2Fcodex-anywhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-abdelwahab%2Fcodex-anywhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-abdelwahab%2Fcodex-anywhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-abdelwahab","download_url":"https://codeload.github.com/m-abdelwahab/codex-anywhere/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-abdelwahab%2Fcodex-anywhere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33534565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codex","dev-environment","railway","remote-development","ssh"],"created_at":"2026-05-26T19:03:48.500Z","updated_at":"2026-05-26T19:03:49.340Z","avatar_url":"https://github.com/m-abdelwahab.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codex Anywhere\n\nRun OpenAI Codex on a persistent Railway server and connect to it securely over SSH. Deploy once, then use the Codex desktop app and ChatGPT mobile app to stay attached to the same remote environment.\n\n\n## 1. Deploy the Railway template\n\nDeploy the Railway template by clicking the **Deploy** button:\n\n[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/codex-anywhere?referralCode=thisismahmoud\u0026utm_medium=integration\u0026utm_source=template\u0026utm_campaign=codex-anywhere)\n\nThe template will build and deploy a service that has Codex installed along with a bunch of other tools. If you don't have a Railway account, you can sign up for free.\n\n## 2. Set up the Railway CLI\n\nThe next step is installing the [Railway CLI](https://github.com/railwayapp/cli). In a terminal, run the following command to install the CLI with agent support configured in one step (macOS, Linux, Windows via WSL):\n\n```bash\nbash \u003c(curl -fsSL railway.com/install.sh) --agents -y\n```\n\nOnce that's done, you need log into your Railway account. You can do so by running the following command:\n\n```bash\nrailway login\n```\n\n## 3. Set up SSH\n\nNext, create an SSH key so your Mac can securely connect to the Railway server.\n\nAn SSH key has two parts:\n\n- The private key stays on your Mac and **should not** be shared.\n- The public key is safe to give to Railway.\n\nCreate a key:\n\n```bash\nssh-keygen -t ed25519\n```\n\n`ssh-keygen` is interactive. Press Enter through the defaults. It looks like this:\n\n```text\nGenerating public/private ed25519 key pair.\nEnter file in which to save the key (/Users/you/.ssh/id_ed25519):\nEnter passphrase (empty for no passphrase):\nEnter same passphrase again:\nYour identification has been saved in /Users/you/.ssh/id_ed25519\nYour public key has been saved in /Users/you/.ssh/id_ed25519.pub\n```\n\nRegister the public key with Railway:\n\n```bash\nrailway ssh keys add --key ~/.ssh/id_ed25519.pub --name codex-anywhere\n```\n\nFinally, you can run a command the following command that configures OpenSSH and adds a named SSH host\n\n```bash\nrailway ssh config\n```\n\nThe command is interactive. When Railway asks what to connect to, choose the project and service from the Codex Anywhere deployment. \n\n\n## 4. Connect with the Codex app\n\nOpen the Codex desktop app and go to:\n\n```text\nSettings \u003e Connections \u003e SSH \u003e Connect\n```\nCodex automatically reads remote connections from your Mac's `~/.ssh/config`. Choose `codex-anywhere`. After configuration, you will need to log into Codex. \n\nFinally, click on the \"new project\" button from the sidebar and choose \"Remote project\". After that, click on \"Add project\". That's it!\n\n## Next steps\n\nYou can pretty much work with Codex the same way you're used to. The difference is you now have a remote machine with its own isolated resources that you can access from anywhere.\n\nIf you plan to work with GitHub repositories, you can just ask Codex:\n\n```text\nRun gh auth login and walk me through the prompts.\n```\n\nNow clone your repo into the persistent `/data` folder:\n\n```text\nClone my repo into /data and inspect it.\n```\n\nThe Railway CLI and agent skills already come preconfigured. You'll also be automatically logged in after you connect, so you can just ask Codex to deploy your projects to Railway.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-abdelwahab%2Fcodex-anywhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-abdelwahab%2Fcodex-anywhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-abdelwahab%2Fcodex-anywhere/lists"}