How to connect Coolify to Toolspoke
Let your Toolspoke agents read your Coolify applications, deployments, servers and backups, and optionally deploy, restart and edit environment variables. A scoped API token, your instance URL, and an agent that watches it.
Checked against Coolify's documentation on 2026-11-25.
Toolspoke's Coolify toolkit calls your instance's REST API at <instance>/api/v1 with an API token you create. It works the same for a self-hosted Coolify and for Coolify Cloud. Once it's installed, any agent in the project can use it. This guide sets it up with a token that can only do what you pick, so an agent can answer "why did that deploy fail" before you let it ship anything. Then it builds an agent that posts a morning health check to your ops channel.
It takes about ten minutes. You need to be able to create API tokens in the team that owns your resources, and on a self-hosted instance, to switch API access on.
What an agent can do once it's connected
The toolkit has 19 named actions. Twelve of them only read:
- Applications:
list_applicationsreturns each app's status, domain, git source and UUID.get_applicationreturns one app's full configuration. - Deployments:
list_running_deploymentsshows what is building right now,list_application_deploymentsshows one app's history, andget_deploymentsays whether a deployment finished or failed, with the build log if asked. - Logs and environment:
application_logsreads the tail of an app's container logs.list_application_envslists environment variable keys, with values masked unless the agent asks for them. - Servers and everything on them:
list_servers,server_resourcesandlist_resourcescover what runs where, and whether it's healthy. - Databases and backups:
list_databaseslists standalone databases, andlist_database_backupsshows each backup schedule and whether its last runs succeeded and reached S3.
The other seven change things:
| Action | What it changes | Kind |
|---|---|---|
deploy | Starts a deployment of one or more resources, by UUID or tag | Write |
start_application | Starts an application's containers | Write |
stop_application | Stops an application's containers, taking it offline | Write |
restart_application | Restarts an application's containers without a rebuild | Write |
update_application | Changes build settings, domains and network options | Write |
create_application_env | Adds an environment variable to an application | Write |
update_application_env | Changes an existing environment variable | Write |
None of the toolkit's actions delete anything. You decide which of these your agents may call (step 4).
What you need
- Coolify with API access on, at an HTTPS address Toolspoke can reach from the internet. Toolspoke refuses private-network addresses, so an instance only reachable on your LAN or VPN won't work.
- A Coolify account in the team that owns the resources, to create the token.
- A Toolspoke workspace, and a project to install the toolkit in.
Step 1: Make sure the API is reachable
Coolify Cloud has API access on already. Skip to step 2.
On a self-hosted instance, an instance admin has to switch it on:
- Open Settings → Advanced.
- Set API access to Enabled and choose Save changes.
- Check Allowed IPs on the same page. If it lists addresses, Coolify rejects API calls from anywhere else with
403 Forbidden. Empty, or0.0.0.0, allows any source.
- Settings
- Advanced
Step 2: Create an API token with only the permissions you need
A Coolify token belongs to the user and team that created it, and it can never do more than that user can in that team. Coolify's docs suggest one token per integration, so make one just for Toolspoke.
- Switch to the team that owns the applications.
- In the sidebar, open Keys & Tokens and select API Tokens.
- Choose New token. Give it a Description, for example
toolspoke. - Pick Expires in. The options are 7, 30, 60 or 90 days, 1 year, or Never. A year is a reasonable rotation.
- Under Permissions, tick only what you need:
readcovers the list and get actions. Sensitive values stay redacted.read:sensitiveis needed forapplication_logsand for seeing environment variable values. Coolify counts container logs as sensitive. It also includesread. Most sensitive values need the token's owner to be a team admin or owner.writeaddsupdate_application,create_application_envandupdate_application_env.deployaddsdeploy, and Coolify's permission list puts restarts and stops under it too. Grant it if agents should start, stop or restart apps. Ifupdate_applicationis called with an instant deploy, Coolify also checks fordeploy.- Leave
deleteandrootunticked. The toolkit has no delete action, androotskips every other check.
- Under Access → Resources, choose Selected projects, environments, or resources if agents should only see part of the team. All resources in the team works too.
- Choose Create token and copy it from the Copy your token window before you choose Done. Coolify doesn't show it again.
- Keys & Tokens
- API Tokens
- New token
A read-only start is read plus read:sensitive. That covers all twelve reads, including logs.
Step 3: Install the Coolify toolkit in Toolspoke
- In Toolspoke, open the project your agents work in. Find Coolify in the marketplace and add it.
- Enter the Instance URL: your Coolify root, without
/api/v1, for examplehttps://coolify.example.com. For Coolify Cloud, usehttps://app.coolify.io. - Paste the API token from step 2. Paste the whole value. It has an ID, a
|, and the secret.
list_servers answered. The credential works.
Toolspoke checks the connection by listing your servers. If that fails, see Troubleshooting.
The token is encrypted at rest and attached to each request by the gateway. The agent never sees it, and it never appears in the arguments an agent sends or in the audit log.
Step 4: Decide what agents may change
In the project's toolkit settings, Coolify's actions are grouped as read, write and destructive. Each one can be switched on or off for everyone in the project. An action that's switched off can't be called, whatever the prompt says.
The token is your first fence and these switches are the second. A sensible start: leave the twelve reads on, and switch off stop_application, update_application, create_application_env and update_application_env until the team trusts it.
Coolify actions in your project
Agents can call 15 of 19, and 3 of those can change something.
list_applicationsList the applications on this Coolify instance with their status, domain, git source, and UUID.get_applicationFetch one application's full configuration: domains, build and start commands, exposed ports, health check, resource limits, and current status.application_logsRead the tail of an application's container logs.list_running_deploymentsList deployments.list_application_deploymentsList one application's deployment history, newest first.get_deploymentFetch one deployment by UUID to check whether it finished, failed, or is still building.list_application_envsList an application's environment variable keys.list_serversList the servers Coolify deploys to, with their address, SSH user, and proxy type.server_resourcesList everything deployed on one server — applications, databases, and services — with each resource's current status.list_resourcesList every resource on the instance in one call — applications, databases, and services together with their type and status.list_databasesList the standalone databases on this Coolify instance with their UUID, type and status.list_database_backupsList one standalone database's scheduled backups, each with its cron frequency, whether it uploads to S3, and its executions (status, s3_uploaded, size, filename, finished_at, message).
update_applicationChange an application's configuration: how it is built, the domains it answers on, and whether it joins the predefined Docker network.deployTrigger a deployment of one or more resources, by UUID or by tag.start_applicationStart an application's containers.stop_applicationStop an application's containers, taking it offline but leaving its configuration and data intact.restart_applicationRestart an application's containers without rebuilding it.update_application_envUpdate an application's existing environment variable.create_application_envCreate a new environment variable on an application.
list_application_envs masks values by default. If an agent does reveal a value, that response is in the audit log like any other, so think twice before granting read:sensitive on apps whose environment holds production secrets.
Every call is recorded with the agent and person behind it, the request, the response and the duration.
Step 5: Build an agent that uses it
In Toolspoke, create an agent and describe its job in one sentence. The builder proposes the instructions, the toolkits it needs, a schedule and where it should answer. You add or skip each one, then create the agent. Every piece stays editable afterwards.
The same agent answers when someone asks it in Slack or emails it, and it replies in the thread it was asked in. If someone emails it, each write, such as a deploy or a restart, waits for a person's go-ahead unless you've allowed that action in advance.
Try it
Ask the agent the way you'd ask a teammate on call:
- Which Coolify applications aren't running right now?
- The last deploy of api failed. Show me the build log and tell me what broke.
- What's running on the hetzner-02 server, and is everything healthy?
- Did last night's backup of the Postgres database succeed, and did it reach S3?
- Show the last 200 log lines from the worker app. Is it crash-looping?
- Redeploy web and tell me when it's finished.
For a deploy, the agent calls deploy, gets back deployment UUIDs, and polls them with get_deployment until each one finishes. The Coolify toolkit page lists every action.
Troubleshooting
401 Unauthenticated.
The token is wrong, expired, paused or revoked, or its owner is no longer in the team. Check the token's row under Keys & Tokens → API Tokens. If you rolled it, the old secret stopped working at once, so paste the new one.
403 Forbidden on every call.
On self-hosted, API access is off, or Allowed IPs doesn't include the address Toolspoke calls from. Coolify returns "You are not allowed to access the API" for the second case.
403 on logs or deploys, while lists work.
The token lacks the permission for that action. application_logs needs read:sensitive, a deploy needs deploy, and edits need write. Create a token that has it, paste it in, and revoke the old one.
An application is missing from the lists.
The token is limited to selected projects or environments, or it belongs to a different team. Tokens only see their own team.
429 Too Many Requests.
Coolify allows 200 API requests a minute by default, and 30 failed requests a minute per token. Repeated 401s or 403s can trip the second limit, so fix the cause before retrying.
The connection check fails with an address error.
The URL must be public HTTPS, and Toolspoke refuses private and internal IPs. Also check you didn't include /api/v1.
Questions
Can an agent delete an application, a database or a server?
No. The toolkit has only the 19 actions above, and none of them delete. The rest of Coolify's API isn't reachable through it.
Does the agent see my environment variable values?
Not by default. list_application_envs masks them, and a token without read:sensitive can't read them at all. Locked environment variables are never returned, even to a root token.