Build a whole site with an agent
You create a project and a token, write a short brief, and give it to an agent that works in a terminal, such as Claude Code or Cursor. The agent builds the whole site in one go: hosting, content model, pages in your languages, your colors and fonts. Then it publishes everything and gives you the address.
1. Create a project#
Sign in at https://studio.galerne.cloud. On the home page, type a name in the New project card and choose create project. The studio fills the slug, such as atelier-rhone.
2. Create a token#
In Settings, API tokens, create a token with the admin scope, set to expire in a few days. Copy it: it starts with gal_ and is shown once.
3. Give the agent the prompt#
Start the agent in an empty folder and paste this prompt. Put your slug and token in it, and change the brief to your own site: the more precise it is, the closer the first version gets.
Build and publish the whole website described below, in one go.
Galerne project: atelier-rhone
Galerne token: gal_…
THE SITE
- Who: Atelier Rhône, a design studio of four people in Lyon. Branding, editorial design and websites for cultural places.
- Languages: French first, then English.
- Pages: home, studio (who we are and how we work), projects (six case studies), team, journal (three posts), contact (address, email, map link).
- Tone: warm, precise, plain sentences. No jargon.
- References: sites we like are https://www.pentagram.com for the large type and the white space, and https://www.collectifhors.fr for the warmth. Take the spirit, never copy.
- Colors: background #F6F1EA, text #1E1B18, accent terracotta #B4532A, a soft second color #D9C7B0. Body text must keep 4.5:1 contrast in light and dark mode.
- Fonts: a serif for headings (Fraunces), a sans for text (Inter).
- Images: use free photos from public URLs that fit the brief, each with alt text in both languages.
- Contact: 12 quai Saint-Vincent, 69001 Lyon, bonjour@atelier-rhone.fr.
- Live touch: the home page background follows the weather in Lyon, from Open-Meteo (free, no key): https://api.open-meteo.com/v1/forecast?latitude=45.76&longitude=4.83¤t=weather_code,is_day. A soft warm tone for sun, grey blue for clouds and rain, deep blue at night. Refresh it every 30 minutes, and keep the default background when the API does not answer.
HOW TO WORK
Galerne is the CMS and the host. Every operation is a tool: GET https://api.galerne.cloud/p/<project>/v1/tools lists them with their JSON Schemas, and POST https://api.galerne.cloud/p/<project>/v1/tools/<name> with a JSON body calls one, with the header Authorization: Bearer <token>. Never print the token or write it to a file.
Read https://www.galerne.eu/docs/tutorial.md first: its "With an agent" parts show which tools to use. Then do everything directly on main, with no branches and no review, and publish as you go:
1. create_site with the starter template, and follow the build until it is ready;
2. read AGENTS.md and galerne.config.ts with read_file, and deploy the content model;
3. set the colors and fonts with update_theme;
4. write and publish all the content, the settings and the UI strings in both languages;
5. change the code with write_files where the template does not cover the brief, such as the weather background: outside APIs go through fetchExternal in lib/external.ts, as AGENTS.md says;
6. follow each build with build_status and fix it with build_logs when it fails.
Do not stop to ask me questions: make reasonable choices and note them. At the end, give me the site's address and a short list of your choices.The agent works for a while. Open the studio during the build: the documents appear as it writes them.
4. Open the site#
When the agent is done, open the address it gives you. Settings, site shows it too, with open site.
Want changes? Ask in the same conversation, for example "make the home hero shorter and use the accent on the buttons". Then revoke the token in Settings, API tokens, or let it expire.
Go further#
- Edit everything in the studio: every page, text and image the agent wrote is a document.
- For later work with review before anything goes live, connect your agent as an agent member: see agents and permissions.
- The full site tutorial goes step by step, with branches, review, data sources and releases.
- The code is yours: clone it or mirror it to GitHub from Settings, site. See sites and code.