Back to TresekoView full library

AI Engine: first use

How to connect AI, validate the engine and launch the first AI-assisted execution.

Practical guide

1 guide found

All guides

AI Engine: first use

How to connect AI, validate the engine and launch the first AI-assisted execution.

Open guide
Reading
12 min
Updated
2026-08-02
Version
1.0.6

When to use this guide

Use it when you want Treseko to use an AI model to interpret steps, navigate, record evidence and return the test result.

Expected result

The AI Engine has provider, endpoint, model, viewport and timeout configured, and a simple test can run with visible progress.

Tresekofrozen test casepending jobevidence
pairing WKrunner tokenheartbeat
Worker
Playwright JS/TSCypress JS/TSPuppeteer JS/TSSelenium PythonSpecialized runtime

The AI Engine works with a chat completions compatible endpoint. It can point to a local runtime like LM Studio, to Ollama with its supported format, or to an external provider depending on available configuration.

If you choose an external provider, its account, quotas, costs and terms are independent from Treseko. Before scaling runs, validate consumption and limits with the provider you choose.

The Configuration > AI Testing screen saves functional parameters for new executions: provider, endpoint, model, temperature, headless, viewport, timeout and parallelism.

Secrets and internal deployment URLs should not be edited from the UI. Values like ENGINE_URL, callback tokens or dangerous flags belong to the environment and require a restart.

Recommended flow

  1. Start backend, frontend and engine.
  2. Open Configuration > AI Testing.
  3. Define provider, LLM endpoint and model.
  4. Run auto-scan of models if applicable.
  5. Save configuration.
  6. Test AI Engine status.
  7. Create or choose a test case with clear steps.
  8. Launch AI execution and review logs, screenshots and result.

Recommended values

viewport_width=1920
viewport_height=1080
headless=true
temperature=0.1
max_parallel_ai_runs=1
timeout_seconds=900

Deployment variables

ENGINE_URL=http://engine:3010
AI_ENGINE_CALLBACK_TOKEN=usar-un-token-operativo
# cambiar estas variables requiere recrear/reiniciar servicios

How to verify

  • The AI Engine health shows no connection error.
  • The selected model exists in the configured provider.
  • A small test generates logs and finishes with a readable result.
  • Sensitive data does not appear in full logs.

Common pitfalls

  • Configuring an endpoint that responds to /models but does not support chat completions.
  • Using high temperature for tests that need repeatability.
  • Running many AI test cases in parallel before validating cost, memory and stability.
  • Enabling full traces in production and capturing credentials or sensitive data.
ai enginellmcostsautomationlm studioollama