CoolifyAPI

Manage your Coolify instance with an Open WebUI chat

v1.0.0
coolifyapi.py
Python · 725 lines
243    class Valves(BaseModel):244        model_config = ConfigDict(extra="forbid")245 246        default_coolify_api_url: str = Field(247            "",248            description="Default Coolify API URL, e.g. http://<ip or url>:8000/api. Leave blank to require users set their own.",249        )250        default_coolify_api_key: str = Field(251            "",252            description="Default Coolify API Key. Leave blank to require users set their own.",253        )254 

Manage your Coolify instance with an Open WebUI Agent.

Very useful for getting AI help with debugging.

Read-only, but able start/stop/restart and update services and applications.
Once I get more experience using it, I will add write options.

AS ALWAYS - USE AT YOUR OWN RISK!

Example: Understand the Server

Familiarize yourself with my Coolify instance and give me an overview of all systems.

The agent will use the following tools to explore and orient inside the instance.

  • list_servers: List all servers.
  • list_projects: List all projects.
  • list_applications: List all applications.
  • list_services: List all services.

Example: Debug A Problem

Solve < problem > with < application >

The agent will then gather additional information and debug using the following tools:

  • get_application: Get full application details.
  • get_service: Get full service details.
  • get_application_logs: Get the logs for an application.

Example: Manage Lifecycle

Restart < application >

The agent can also manage the lifecycle of applications and services:

  • start_application: Start an application.
  • stop_application: Stop an application.
  • restart_application: Restart an application.
  • deploy_application: Deploy an application (pulls latest image and restarts).
  • start_service: Start a service.
  • stop_service: Stop a service.
  • restart_service: Restart a service (optionally pulls latest image).
0
0