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.

Coolify toolkitManage applications, services, deployments, and servers.

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_applications returns each app's status, domain, git source and UUID. get_application returns one app's full configuration.
  • Deployments: list_running_deployments shows what is building right now, list_application_deployments shows one app's history, and get_deployment says whether a deployment finished or failed, with the build log if asked.
  • Logs and environment: application_logs reads the tail of an app's container logs. list_application_envs lists environment variable keys, with values masked unless the agent asks for them.
  • Servers and everything on them: list_servers, server_resources and list_resources cover what runs where, and whether it's healthy.
  • Databases and backups: list_databases lists standalone databases, and list_database_backups shows each backup schedule and whether its last runs succeeded and reached S3.

The other seven change things:

ActionWhat it changesKind
deployStarts a deployment of one or more resources, by UUID or tagWrite
start_applicationStarts an application's containersWrite
stop_applicationStops an application's containers, taking it offlineWrite
restart_applicationRestarts an application's containers without a rebuildWrite
update_applicationChanges build settings, domains and network optionsWrite
create_application_envAdds an environment variable to an applicationWrite
update_application_envChanges an existing environment variableWrite

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:

  1. Open Settings → Advanced.
  2. Set API access to Enabled and choose Save changes.
  3. Check Allowed IPs on the same page. If it lists addresses, Coolify rejects API calls from anywhere else with 403 Forbidden. Empty, or 0.0.0.0, allows any source.
Coolify
  1. Settings
  2. Advanced
API access(ticked)
Allowed IPs
leave empty, or list the addresses you allow
Save changes
Both settings sit on the same page. Only an instance admin can change them. Illustration of Coolify's screen. The labels are Coolify's; the layout is ours.

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.

  1. Switch to the team that owns the applications.
  2. In the sidebar, open Keys & Tokens and select API Tokens.
  3. Choose New token. Give it a Description, for example toolspoke.
  4. Pick Expires in. The options are 7, 30, 60 or 90 days, 1 year, or Never. A year is a reasonable rotation.
  5. Under Permissions, tick only what you need:
    • read covers the list and get actions. Sensitive values stay redacted.
    • read:sensitive is needed for application_logs and for seeing environment variable values. Coolify counts container logs as sensitive. It also includes read. Most sensitive values need the token's owner to be a team admin or owner.
    • write adds update_application, create_application_env and update_application_env.
    • deploy adds deploy, and Coolify's permission list puts restarts and stops under it too. Grant it if agents should start, stop or restart apps. If update_application is called with an instant deploy, Coolify also checks for deploy.
    • Leave delete and root unticked. The toolkit has no delete action, and root skips every other check.
  6. 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.
  7. Choose Create token and copy it from the Copy your token window before you choose Done. Coolify doesn't show it again.
Coolify
  1. Keys & Tokens
  2. API Tokens
  3. New token
Description
toolspoke
Expires in
1 year
Options: 7 days, 30 days, 60 days, 90 days, 1 year, Never
read(ticked)
read:sensitive(ticked)
write(not ticked)
delete(not ticked)
deploy(not ticked)
root(not ticked)
Resources
Selected projects, environments, or resources
Create token
Copy the token from the Copy your token window before you choose Done. Coolify doesn't show it again. Illustration of Coolify's screen. The labels are Coolify's; the layout is ours.

A read-only start is read plus read:sensitive. That covers all twelve reads, including logs.

Step 3: Install the Coolify toolkit in Toolspoke

  1. In Toolspoke, open the project your agents work in. Find Coolify in the marketplace and add it.
  2. Enter the Instance URL: your Coolify root, without /api/v1, for example https://coolify.example.com. For Coolify Cloud, use https://app.coolify.io.
  3. Paste the API token from step 2. Paste the whole value. It has an ID, a |, and the secret.
CredentialCoolify
Instance URL
https://coolify.example.com
Your Coolify instance root, without /api/v1. Use https://app.coolify.io for Coolify Cloud.
API token
••••••••••••••••
Keys & Tokens → API tokens. Grant read-only for the list actions, or read/write for deploy, power, and environment changes.

list_servers answered. The credential works.

Save and test
The Coolify toolkit's credential card in your Toolspoke project, with its real fields.

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.

Read
Looks, changes nothing.
  • 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).
Write
Changes something you can change back.
  • 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.
Try the switches. They start the way this guide suggests; nothing here changes your project.

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.

Connect Coolify to Toolspoke

Install Coolify in a project, give it to an agent, and every call is checked and logged.