Guides

Deploy button

Put a button in your repository's README, and anyone who reads it can run their own copy on their own server, with the address filled in for them.

Deploy to Server4Agent

Add it to your README

Paste this near the top of your README and change the repository address to yours.

README.md
[![Deploy to Server4Agent](https://www.server4agent.com/badges/deploy.svg)](https://my.server4agent.com/deploy?repo=https%3A%2F%2Fgithub.com%2Fyour-org%2Fyour-repo)

Where Markdown is not an option, the same button works as HTML.

README.html
<a href="https://my.server4agent.com/deploy?repo=https%3A%2F%2Fgithub.com%2Fyour-org%2Fyour-repo"><img src="https://www.server4agent.com/badges/deploy.svg" alt="Deploy to Server4Agent" height="32"></a>
A project you imported from Git already has its own button ready to copy, with your repository filled in, on the project's Settings tab under Badges.

What happens when someone presses it

The button opens the dashboard with your repository in the Git import. Someone without an account signs up first and comes straight back to it. They pick the server it runs on, see the environment variables your repository's .env.example asks for, and press Create. Nothing is cloned or run before that.

Someone with no server yet makes one first, and lands back on your repository when it is ready.

The link

The button is a plain link, so you can also put it in a blog post, a tweet or your own docs. repo takes a public repository on github.com or gitlab.com, as a full address or as owner/repo for GitHub. ref is optional and picks a branch, tag or commit instead of the default branch.

deploy link
https://my.server4agent.com/deploy?repo=https://github.com/your-org/your-repo
https://my.server4agent.com/deploy?repo=your-org/your-repo&ref=main

A link to a folder inside a repository, or to any other host, is refused rather than guessed at. A private repository also needs a token: whoever deploys it adds one under Secrets and names it in the import.

Made with Server4Agent

To say where your app runs, add the badge to its footer. It opens our homepage in a new tab, so your visitors keep their place in your app. There is a light and a dark version.

Made with Server4AgentMade with Server4Agent
footer.html
<a href="https://www.server4agent.com/?utm_source=made_with_badge&amp;utm_medium=referral&amp;utm_campaign=badges&amp;utm_content=app_footer" target="_blank" rel="nofollow noopener"><img src="https://www.server4agent.com/badges/made-with.svg" alt="Made with Server4Agent" height="28"></a>

Or in a README:

README.md
[![Made with Server4Agent](https://www.server4agent.com/badges/made-with.svg)](https://www.server4agent.com/?utm_source=made_with_badge&utm_medium=referral&utm_campaign=badges&utm_content=app_footer)
Next: Examples→

Connect an agent

Create a key, paste the MCP config, and your assistant can publish what it builds at a live URL that keeps running.