Skip to content

Interactive Playground

Run a real agent in your browser — no local install, no cloning, no CLI setup. Powered by StackBlitz WebContainers, which runs Node.js entirely in-browser.

Get a free Gemini API key at ai.google.dev — no credit card required.

ProviderFree tier?.env variable
Google Gemini ← recommended✅ Yes — generous free tierGOOGLE_API_KEY
Anthropic Claude❌ Pay-as-you-goANTHROPIC_API_KEY
OpenAI❌ Pay-as-you-goOPENAI_API_KEY
Local Ollama✅ FreePROVIDER=ollama + OLLAMA_ENDPOINT (HTTPS tunnel — see below)

The simplest possible agent. One question, one answer. Start here to see the core API in action.

Set QUESTION in Secrets to ask anything you like.


  1. Start Ollama with CORS open (it must accept the tunnel origin):

    Mac/Linux:

    Terminal window
    OLLAMA_ORIGINS=* ollama serve

    Windows:

    Terminal window
    set OLLAMA_ORIGINS=* && ollama serve
  2. Pull a model if you haven’t already:

    Terminal window
    ollama pull llama3.2
  3. Expose Ollama over HTTPS with a tunnel:

    Terminal window
    cloudflared tunnel --url http://localhost:11434
    # or: ngrok http 11434

    Copy the https://… URL it prints.

  4. In the .env tab, set:

    PROVIDER = ollama
    OLLAMA_ENDPOINT = https://YOUR-TUNNEL.trycloudflare.com
    MODEL = llama3.2
  5. Click the terminal restart button (↺) to re-run with the new env vars.