xhost
Sign in

Getting Started with Claude Code & IDEs

Use xhost from your local terminal or editor — Claude Code, Codex, Cursor, or any AI tool that can fetch a URL and run shell commands.

1

Sign in to xhost

Go to xhostd.com and click Sign in with Google. On first sign-in you'll be asked to pick a username — that becomes part of your project URLs (e.g. my-site-yourname.xhostd.com).

2

Create an API token

Visit xhostd.com/tokens?label=claude-code and click Create token. The token (starts with xh_) is shown once — copy it now and keep it somewhere safe.

3

Load xhost into your AI tool

Open your AI coding tool (Claude Code, Codex, Cursor, etc.) and paste this command to teach it how to work with xhost:

Paste into your AI tool
Fetch xhost deployment instructions from https://docs.xhostd.com/llms-full.txt

This gives your AI tool everything it needs to create apps, deploy code, and manage your projects on xhost.

4

Tell it what to build

Describe what you want and include your token in the first message:

Example prompt
My xhost token is xh_abc123...

Build a landing page for my coffee shop called "Bean There".
Deploy it to xhost.

Your AI tool will create the site, push the code, and deploy it. When it's done, you'll get a live URL like https://bean-there-alice.xhostd.com.

Other things you can ask for:

5

Make changes

Want to update your project? Just tell your AI tool what to change. It will update the code and redeploy automatically.

You can also share a preview link before going live — ask your AI tool to "deploy a preview" and it will create a separate URL you can share for feedback.

Every project gets a database wired in automatically — your app reads DATABASE_URL and your AI tool takes care of the rest. The API reference covers schema reset and SQL dump if you ever need them.

6

For developers

Want to use the API directly? xhost is fully API-driven. See the API Reference for curl examples, endpoint documentation, and the OpenAPI spec.