Get your.alternative.to — deploy a live site with Claude Code and Buddy

We've made the alternative.to domain available for everyone to try. Pick a topic, let Claude Code generate a static site, and get it live at alternative.to/your-topic — entirely through the bdy CLI or the Buddy UI, without touching a hosting dashboard.

Under the hood, Buddy uses Artifacts to store and version your build output, and Routing to serve it on a real URL.

Install bdy CLI

You'll need a Buddy account and the bdy CLI installed.

macOS / Linux:

bash
sudo npm i -g bdy $

Windows:

bash
npm i -g bdy $

Then authenticate with your Buddy workspace:

bash
bdy login $
Info
More installation options (Homebrew, APT, Chocolatey, direct download) in the CLI getting started guide.

How it works

The flow has three steps, all handled by Claude Code using bdy commands:

  1. Generate — Claude Code builds a single-file static HTML site on your chosen topic.
  2. Publishbdy artifact publish -c uploads the output and creates an artifact version.
  3. Routebdy distro create + bdy distro route create attach the artifact to alternative.to/your-topic using CLOAKING, so it's served under the domain without a redirect.

The prompt

Paste the block below into Claude Code. Everything above the Topic: line is fixed boilerplate — only replace the last line with your actual topic:

Generate a static site, then publish and serve it entirely through the bdy CLI. Build it as a single static HTML site, client-side only, no backend. Steps: 1. Publish the site as an artifact using bdy artifact publish -c 2. Create a distribution with bdy distro create 3. Add a route with bdy distro route create, pointing it at the published artifact. Use --domain="alternative.to", --path="/your-topic" and --type="CLOAKING", and pick a short path that matches the topic. Pass alternative.to whole as --domain, do not add a --subdomain. Use only bdy distro and bdy artifact commands. Do not use any bdy domain commands (no buy, search, get, or list). alternative.to already exists, so just reference it as the --domain string. If you can't attach the route this way, stop and report instead of touching domains. Run bdy distro route create --help first to confirm the exact flags. Topic: [type your topic here]

Claude Code runs the commands, and reports back the live URL once the route is created.

Image loading...Claude Code running bdy commands

Doing it via the Buddy UI

Prefer clicking over typing? You can do the same through the Buddy interface. The flow has three steps: claim a domain, create an artifact, add a route.

1. Claim a domain

Go to Domains in your project sidebar and claim a subdomain. alternative.to is one of many available — pick it and it'll be assigned to your workspace.

Image loading...Claim a subdomain

2. Create an artifact

Go to Artifacts in your project sidebar. Click New artifact, give it a name, set the scope, and choose Public access control so it can be served over HTTP. Once created, publish files to it using bdy artifact publish or from your pipeline.

3. Add a route

Go to Routing in your project sidebar. Click Add to create a new route. Select your distribution, set the type to Cloaking, pick your claimed domain, set a path, and point the upstream at your published artifact.

Image loading...Routing overview in Buddy UI

Give it a try

Whether you use Claude Code or the UI, the result is the same: a live static site on a real domain, versioned and routable, with no external hosting account needed. Pick a topic, run the prompt, and share the link.

Have questions or want to show off what you built? Drop us a line at support@buddy.works.

Jarek Dylewski

Jarek Dylewski

Customer Support

A journalist and an SEO specialist trying to find himself in the unforgiving world of coders. Gamer, a non-fiction literature fan and obsessive carnivore. Jarek uses his talents to convert the programming lingo into a cohesive and approachable narration.

Jun 17, 2026
Share