Skip to content

Laravel ForgeServers and hosting

See why the deploy failed.

An AI agent reads your Forge servers, sites and deployment logs, and tells you where a deploy broke. Deploying, restarting and running commands always wait for a person.

Laravel ForgeInfinized

11 actions an AI agent can take

  • Runs alone7
  • Always asks4
Works in
Any AI agent you give it to
Signs in
With an API token you create in Forge
On the record
Every read and every change

All 11 actions

Every action.

What an AI agent can do in Laravel Forge, and what waits for you. Pick an action to see what would appear for you.

Servers and sites

4

Deployments and logs

3

Deploy and operate

4
  • What you see before it happensExample
    Your AI agentAI agentAlways asks

    Wants to deploy a site in Laravel Forge.

    Site
    staging.example.nl
    Server
    shop-web-2
    Why
    The webhook fix is merged
    Waiting for you

    Deploy a site in Laravel Forge always waits for a person. No setting turns that off.

Hand it over

Ask in your own words.

Ask the way you would ask a person. Looking something up happens straight away, and a change waits for you.

ChatExample
  • Why did the shop deploy fail this afternoon?

    AI agentRuns alone

    AI agent: Composer stopped at 14:02: the new PDF package needs ext-intl, which shop-web-2 does not have. The last good deploy was yesterday at 16:40, and nothing else has changed.

  • Redeploy staging now the webhook fix is merged.

    AI agentAlways asks

    AI agent: The deploy of staging.example.nl is ready and waiting for you. It took two minutes last time. I will read the log once it has run.

  • Which servers still run PHP 8.1?

    AI agentRuns alone

    AI agent: Two of six: shop-legacy and mail-relay, with 4 sites between them. The upgrade itself is done in Forge, but I can list what runs on each.

Set up

Connect it once.

Connect Laravel Forge once and hand it to the AI agents who need it. Each one gets only the account you give it.

How to connect it.

Signs in: With an API token you create in Forge

  1. Create an API token in your Laravel Forge account API settings. It is scoped to a team.

  2. Paste it into API token, and enter your Organization slug: the part after forge.laravel.com/ in your Forge address.

  3. Give the connection a recognisable Label, e.g. "Prod Forge".

Laravel Forge’s own documentation(opens in a new tab)

Start small and safe.

  1. Start with the logs. Pick the Read only profile for the first week. An AI agent reads servers, sites and deployment logs, and no tool that changes anything is loaded.

  2. Hand it the failed deploys. Ask why a deploy went wrong. An AI agent answers from the deployment log and the site log, and names the step that broke.

  3. Approve each deploy. Deploying, running a command, restarting a service and rebooting always wait for a person, whatever your settings say. The card shows which server and site.

Works well with

Two systems, one task.

Most work runs through two systems. Give one AI agent both, and the look-up and the change happen in one task.

Every system

Questions

Questions about Laravel Forge.

Can an AI agent change things in Laravel Forge?

Yes, and it asks first: 4 of its 11 actions change something, and each of those waits for a person by default. Deploy a site, run a command in a site, restart a service and reboot a server always wait, whatever your settings say. The rest run on their own, and every call is on the record.

What do we need to connect Laravel Forge?

Create an API token in your Laravel Forge account API settings. It is scoped to a team. Paste it into API token, and enter your Organization slug: the part after forge.laravel.com/ in your Forge address. Give the connection a recognisable Label, e.g. "Prod Forge".

Can an AI agent run any command on the server?

No. Commands that wipe a disk, reboot the machine or run an inline script are refused, even after approval. So are plain reads of files such as .env. Every other command waits for a person first.

Does an AI agent see our deploy hook?

No. The address that triggers a deploy is removed before an AI agent sees the site, so it cannot end up in a chat.

Does it work with Forge organisations?

Yes. Add your organisation slug to the connection and it uses Forge’s current API. Without the slug it falls back to the older one, which no longer lists every server.

Put an AI agent on deploy duty.

We start by listening to your question. Then we show you a demo that fits your organisation.

  • Approvals from the first run
  • Budgets that stop
  • Hosting in the Netherlands