Start
Get started
On this page
What you need
- An AI agent you already use, such as Claude Code, Codex, Cursor, claude.ai or ChatGPT. You ask it to publish, and it does the work.
- A Valet account and an organization. An organization is the shared workspace where your team's work lives. Sign up at dashboard.valet.dev, and name your organization when setup asks. If a teammate invited you, join their organization instead.
You'll publish an artifact: a web page or small website, such as a report or a dashboard, at its own address.
Connect your agent
The quickest way is to give your agent these instructions. It installs what it needs, publishes what you're working on, and replies with the link:
The instructions set up Valet's cloud. For your company's own installation, see Use your company's installation. For individual client instructions, see Manual setup.
Publish your first artifact
Ask your agent to make something and publish it:
Make a one-page summary of this week's support tickets and publish it
with Valet as support-summary.What happens next:
- The first time, your agent opens a browser so you can sign in to Valet.
- The artifact goes into your organization. If you belong to more than one organization, tell your agent which one to use.
- Your agent replies with the artifact's address, such as
https://support-summary.acme.valet.run. - The artifact starts private. Only members of your organization can open it, after they sign in to Valet. To share it with a teammate, send them the address.
In a new organization, the first address can take a few minutes to start working while Valet sets up HTTPS.
Your agent publishes through Valet's MCP server, or with the CLI when it runs commands. Both call an artifact a site. Over MCP, it creates the site first, then publishes to it:
create_service
{ "kind": "site", "name": "support-summary" }publish_site
{
"name": "support-summary",
"title": "Support summary",
"description": "This week's support tickets on one page.",
"files": [{ "path": "index.html", "content": "<!doctype html>\n…" }]
}Over MCP, the sign-in page opens the first time your agent calls a
tool. With the CLI, valet auth login opens it. valet deploy pushes
with Git, so it needs Git 2.32 or later installed.
Manual setup
Every agent connects to Valet the same way: through Valet's MCP server.
An MCP server gives an AI app new tools. Agents that run commands
can also use the Valet CLI, the valet command; see
CLI.
Claude Code
Run this in a terminal, then start a new Claude Code session:
claude mcp add --transport http valet https://api.valet.dev/mcpCodex
Run these in a terminal, then start a new Codex session:
codex mcp add valet --url https://api.valet.dev/mcp
codex mcp login valetcodex mcp login valet signs Codex in to the server.
Other agents that run commands
Add https://api.valet.dev/mcp as a remote MCP server in the agent's
settings, the same way as for a chat app below.
If you installed the Valet plugin
The Valet plugin and the valet skill are retired. Remove them so
Valet's server isn't loaded twice:
# Claude Code
claude plugin uninstall valet@valet
claude plugin marketplace remove valet
# Codex
codex plugin remove valet@valet
codex plugin marketplace remove valetclaude.ai, ChatGPT and other chat apps
In your chat app's settings, add a custom connector with this address:
https://api.valet.dev/mcpThe first time the chat app uses Valet, it opens a Valet sign-in page. Chat apps publish text files only: HTML, CSS, JavaScript, Markdown, JSON and SVG. A page with images or PDFs needs an agent that runs commands.
Use your company's installation
Sign in to your company's Valet dashboard first, and create or join your organization. Then set these in the terminal you start your agent from, with the values your administrator gives you:
export VALET_API_URL=https://api.<domain>
export VALET_GATEWAY_URL=https://gateway.<domain>
export VALET_WORKOS_CLIENT_ID=<client ID>
export VALET_CONFIG_DIR=~/.config/valet-<company>To keep these settings in new terminals, ask your agent:
Save these Valet settings in my shell profile.VALET_CONFIG_DIR keeps this sign-in apart from a valet.dev one. When
you sign in, the browser opens your company's sign-in page. If it opens
auth.valet.dev instead, the client ID is missing: stop and set it.
Add https://api.<domain>/mcp as the MCP server, in place of
https://api.valet.dev/mcp. In Claude Code:
claude mcp add --transport http valet https://api.<domain>/mcpIn Codex:
codex mcp add valet --url https://api.<domain>/mcp
codex mcp login valetFor a chat app, add https://api.<domain>/mcp as the connector. The
server works only when your administrator has set up MCP sign-in and
your agent can reach the installation. The CLI follows the settings
above.
Artifacts serve at https://<name>.<org>.<domain>.
Next
- Skills: share how you do a task with every teammate's coding agent.
- Artifacts: access modes, sharing and updates.
- Apps: tools that need a server or a database.
- Agents: workers that run on their own.
- Data access: connect a tool to real data.