wtree Cloud

AI assistant

Generate Compose files and diagnose deployment or runtime logs with a model you connect.

Connect an AI provider to generate docker-compose.yml files from a description and to analyze deployment and runtime logs.

wtree Cloud ships no model. You bring a provider and an API key. Any provider with an OpenAI-compatible API works.

Before you start

  • You are an organization owner or admin. Members can't use AI: the AI assistant entry in the create-service menu and the AI button in log viewers are hidden for them.
  • You have an API URL, an API key and a model name from your provider.

Connect a provider

Open Integrations › AI providers and click Add AI.

Fill in the fields.

FieldWhat it does
NameLabel for this provider, such as OpenAI, Claude or Local LLM.
API URLThe API endpoint, such as https://api.openai.com/v1.
API KeyYour key for that provider.
ModelThe model to use, such as gpt-4o or claude-sonnet-4-20250514.

Click Save.

You can add several providers, enable or disable them without deleting them, edit them, delete them and view the models each one offers.

ProviderAPI URLExample models
OpenAIhttps://api.openai.com/v1gpt-4o, gpt-4o-mini, o1
Anthropichttps://api.anthropic.com/v1claude-sonnet-4-20250514, claude-haiku-4-5-20251001
Ollama (local)http://localhost:11434/v1llama3, mistral, codellama
OpenRouterhttps://openrouter.ai/api/v1Models from several providers
Azure OpenAIhttps://{resource}.openai.azure.com/openaigpt-4o, gpt-4

After you save, the API key is never shown again, not even to admins: the field displays ********. Leave it untouched to keep the key while you change other settings. Type a new value to replace it. If you change the API URL, enter the key again, because the model list can't be loaded with the stored key for a different URL.

Generate a Compose file

  1. In a project, open AI assistant from the create-service menu.
  2. Describe what you want to run, for example "Grafana with Prometheus for monitoring", "A WordPress site with MySQL and Redis for caching" or "Plausible Analytics with PostgreSQL and ClickHouse".
  3. Review the result. It contains services, environment variables with defaults, volumes, networks and any other config needed.
  4. Edit as needed and deploy.

Treat the output as a starting point. Check environment variables, resource limits and volumes before you deploy.

Analyze logs

Open a deployment log dialog or a runtime log viewer, click AI, pick a provider and click Analyze latest N lines. wtree Cloud fetches the recent lines for that deployment, container or Swarm service itself, so the analysis ignores the viewer's search, filters and loaded-line count.

Set these per provider under Integrations › AI providers › Edit AI:

SettingDefaultWhat it does
Log lines sent to AI200Recent lines fetched for analysis. Accepts 1–10,000.
Inspect source code when analyzing logsOffLets the model list, search and read source files next to the logs. Needs a model with tool calling.

The result shows how many lines were analyzed, whether source was inspected and which files were read. Log content is capped at 1 MiB and any truncation is reported. If your model rejects the context size, lower the line limit or turn off source inspection.

Older log dialogs without a deployment or service target analyze their loaded log text, within the line limit, and never read source.

Source inspection

With inspection on, the agent reads the existing checkout of the application or Compose service, including checkouts on remote build or deployment servers and preview checkouts. It cites file paths and line numbers. Access is read-only: it can't edit files, run commands or redeploy.

  • Excluded: credential files, .env files, Git internals, dependencies, generated output, binary files and symbolic links.
  • Limits: eight tool rounds, twenty file reads, 64 KiB per file and 256 KiB of source in total. The result says when the investigation is incomplete.
  • Fallback: if the checkout is unavailable, the target has no source (a standalone Docker image) or the model has no tool support, wtree Cloud says so and analyzes the logs alone.

Relevant code and logs are sent to the selected provider. Secrets inside ordinary source or log text can still be sent. The checkout can differ from the revision that produced the logs, because wtree Cloud doesn't fetch historical revisions.

Next steps

On this page