---
title: "Use the Playground"
description: "Compare one software task across up to three model windows in Autohand Console, tune each request, reopen private runs for 30 days, and copy the request as REST or SDK code."
slug: "console/playground"
sidebar:
  label: "Playground"
seo:
  title: "Use the Autohand Console Playground"
  description: "Use the Autohand Console Playground to choose a model, write a prompt, set parameters, compare Fantail and Moa, run Weka decisions, and copy REST or SDK code."
---

The Playground in [Autohand Console](https://console.autohand.ai/playground) lets you try a prompt against the models in your plan before you write any code. You can run the same task in up to three windows side by side, change the model and parameters in each, and then copy the exact request as REST or SDK code.

The Playground has two modes, selected at the top of the page:

- **Chat comparison** runs chat requests against `POST /v1/chat/completions`.
- **Weka decisions** sends typed questions to Weka through `POST /v1/decisions`. See [run a Weka decision](#weka).

<img className="ah-shot-light" src="/images/console/playground-light.webp" alt="Autohand Console Playground in Chat comparison mode with an example menu, History, SDK code, Add window and Run all buttons, and two windows for Fantail and Moa with System and User prompts" width="2880" height="1800" loading="lazy" />
<img className="ah-shot-dark" src="/images/console/playground-dark.webp" alt="Autohand Console Playground in Chat comparison mode with an example menu, History, SDK code, Add window and Run all buttons, and two windows for Fantail and Moa with System and User prompts" width="2880" height="1800" loading="lazy" />

Chat comparison with two windows: Fantail in window A and Moa in window B, both filled with the same review example. Demo data.

## Before you run [#before-you-run]

- Sign in at [console.autohand.ai](https://console.autohand.ai) and choose the account in the account switcher. The models you can pick come from that account's plan.
- Runs in the browser use your Console session. You do not paste an API key into the Playground.
- Only send evidence you are allowed to share with the selected model. Leave out secrets, access tokens, and customer data you do not need.

## Compare a task across models [#run-a-prompt]

1. **Open Playground.** Select **Playground** in the sidebar. It opens in **Chat comparison** with two windows, A and B. Window A starts on Fantail and window B on Moa.
2. **Pick an example, or write your own.** Open the example menu (it shows the current question, such as **What could break in this change?**). Examples are grouped into **Plan & research**, **Build & debug**, and **Review & release**. Choosing one fills the same task into every window.
3. **Choose a model for each window.** Open the model menu at the top of a window and pick a model. Each model shows a short description, such as **Fantail · fast, focused** or **Moa · deep reasoning**.
4. **Edit the prompt.** Each window has a **System** message (the role, rules, and expected answer) and a **User** message (the diff, error, contract, or test output you want answered). You can edit each window on its own.
5. **Add a window if you need one.** Select **Add window**, or open a window's actions menu and choose **Duplicate window**. You can compare up to three windows. **Remove window** takes one away.
6. **Run.** Select **Run** inside a window to run only that window, or **Run all** (Cmd Enter or Ctrl Enter) to run every window. Select **Stop all** to cancel. Each result appears under **Output** in the same column as its prompt, with its latency and token count.

Compare each answer against the evidence you supplied. Do not treat the first response as approval.

## Set request parameters [#parameters]

Select the sliders button at the top of a window to show its settings. Each window keeps its own settings.

<img className="ah-shot-light" src="/images/console/playground-settings-light.webp" alt="Playground window B settings with Streaming True or False, a Temperature slider, Output limit, Reasoning effort, More parameters, and the Request JSON panel with Copy JSON" width="2880" height="1800" loading="lazy" />
<img className="ah-shot-dark" src="/images/console/playground-settings-dark.webp" alt="Playground window B settings with Streaming True or False, a Temperature slider, Output limit, Reasoning effort, More parameters, and the Request JSON panel with Copy JSON" width="2880" height="1800" loading="lazy" />

Settings for window B. The Request JSON panel shows the exact body Run will send. Demo data.

| Setting | What it does |
| --- | --- |
| **Streaming** | **True** renders tokens as they arrive. **False** waits for the full response. |
| **Temperature** | Lower values give more consistent answers. Higher values give more varied ones. |
| **Output limit** | The maximum number of output tokens. The menu only offers limits the selected model supports. |
| **Reasoning effort** | How much the model reasons before answering. Shown only for models that accept it. Fantail has no reasoning-effort parameter, so it is left out of the request. |
| **More parameters** | **Top P**, **Seed**, **Response format** (**Text** or **JSON object**), **Prompt cache key**, **Frequency penalty**, **Presence penalty**, **Stop sequences**, and **Additional API parameters** as JSON. Controls a model does not support are disabled. |

Open **Request JSON** at the bottom of the settings to see the exact body that **Run** sends to `POST /v1/chat/completions`. Select **Copy JSON** to copy it.

To start over, select **Reset playground** (the circular arrow beside **Add window**). It puts the windows, models, and example back to the default comparison.

## Reopen private runs for 30 days [#history]

Every successful run is saved automatically and privately. The bar under the controls confirms it with **Saved privately for 30 days.**

- Only you can open your Playground history. Other members of the same account cannot.
- Each run expires 30 days after it was created. Opening a run does not extend it.
- Only successful runs are saved.

To reopen a run:

1. Select the window you want to restore into.
2. Select **History**. The **Run history** panel lists each run with its model, time, and days left.
3. Select a run. Playground restores its model, settings, prompts, and result into the active window, marked **Saved run**.

Editing a restored prompt does not change the saved record. Running it again creates a new run with its own 30-day expiry. To remove a run sooner, select **Delete** beside it.

<img className="ah-shot-light" src="/images/console/playground-history-light.webp" alt="Run history panel with two saved runs of What could break in this change, one for Moa and one for Fantail, each with 30 days left" width="2880" height="1800" loading="lazy" />
<img className="ah-shot-dark" src="/images/console/playground-history-dark.webp" alt="Run history panel with two saved runs of What could break in this change, one for Moa and one for Fantail, each with 30 days left" width="2880" height="1800" loading="lazy" />

Run history lists each saved run with the model and the days left before it expires. Demo data.

## View and copy the code [#sdk-example]

When the result looks right, take the same request into your application.

1. Select the window whose request you want to use. It becomes the active window.
2. Select **SDK code**. The **Use this task in your stack** panel opens, with the active window's model and settings listed at the top.
3. Choose a tab: **REST API**, **TypeScript**, **Python**, **Go**, **Java**, **Swift**, **Rust**, **Ruby**, **C#/.NET**, or **C++**. Each tab shows its install command and whether the SDK is **Stable** or **Preview**.
4. Select **Copy code**.

**REST API** reproduces the active request exactly. The SDK tabs carry the full system and user prompt into an agent run and note any HTTP-only controls in a comment.

<img className="ah-shot-light" src="/images/console/playground-sdk-light.webp" alt="Use this task in your stack panel showing language tabs from REST API to C++, the TypeScript example with Copy code, and the Playground API key section with Copy new key and Manage keys" width="2880" height="1800" loading="lazy" />
<img className="ah-shot-dark" src="/images/console/playground-sdk-dark.webp" alt="Use this task in your stack panel showing language tabs from REST API to C++, the TypeScript example with Copy code, and the Playground API key section with Copy new key and Manage keys" width="2880" height="1800" loading="lazy" />

The SDK code panel on the TypeScript tab, with the Playground API key status at the bottom. Demo data.

### The Playground API key [#playground-key]

The copied examples read the key from the `AUTOHAND_AI_API_KEY` environment variable. They never embed a raw key in source.

The first time you open the Playground for an account, Console creates an API key named **Playground** for that account if one is not already active. The **Playground API key** section at the bottom of the SDK code panel shows its prefix. While the new key's raw value is still available, select **Copy new key** to copy it, and store it in your server or local environment as `AUTOHAND_AI_API_KEY`. Select **Manage keys** to open [API Keys](/console/api-keys), where you can revoke it like any other key.

The **Swift** tab uses provider-native authentication, so the Playground key does not apply there.

Select **Open the SDK quickstart** at the bottom of the panel for a complete project setup, or follow the [API-key setup guide](/agent-sdk/api-key-setup).

## Run a Weka decision [#weka]

Weka answers named questions about one shared state and returns typed answers. Select **Weka decisions** at the top of the Playground to switch modes. You can also open it directly at [console.autohand.ai/playground?mode=weka](https://console.autohand.ai/playground?mode=weka).

1. Choose a starting point from **Example**, such as **Release gate** or **Incident triage**.
2. Edit the request in the **Request** editor. The `state` object holds the facts. The `questions` object holds each question with its `type`: `noul` (a probability), `choice` (one of your named criteria), or `score` (a level).
3. Fix any problem the editor reports. **Run Weka** stays disabled until the JSON is valid.
4. Select **Run Weka**, or press Cmd Enter or Ctrl Enter.
5. Read each answer on the **Answers** tab, the raw response on **Response JSON** (with **Copy JSON**), and ready-to-run code on **Code** (**TypeScript SDK** or **cURL**). The code reads `AUTOHAND_API_KEY` from the environment.

<img className="ah-shot-light" src="/images/console/playground-weka-light.webp" alt="Weka decisions mode titled Ask one state. Get typed answers, with a Request editor showing a release gate state and questions, and an Answers tab listing needs_fix, rollout, and risk" width="2880" height="1800" loading="lazy" />
<img className="ah-shot-dark" src="/images/console/playground-weka-dark.webp" alt="Weka decisions mode titled Ask one state. Get typed answers, with a Request editor showing a release gate state and questions, and an Answers tab listing needs_fix, rollout, and risk" width="2880" height="1800" loading="lazy" />

Weka decisions mode with the Release gate example: the request JSON on the left and the three typed questions it will answer on the right. Demo data.

Weka uses your plan's existing allowance. It is available through the API, the Agent SDKs, and the Console Playground. It is not available in Autohand Code CLI chat. See [Weka](/models/weka) and the [Weka use cases](/models/weka/use-cases).

## A reusable review prompt [#review-prompt]

```yaml
Review this change for correctness, security, and rollout risk.

Evidence:
- Intended behavior: [state the contract]
- Changed code: [paste the smallest relevant diff]
- Existing tests: [name or paste results]
- Deployment constraint: [state the real boundary]

Return:
1. Confirmed findings, ordered by severity
2. Assumptions that still need evidence
3. The smallest tests required before approval
```

## Troubleshooting [#troubleshooting]

| Symptom | What to check |
| --- | --- |
| A model is missing from the menu | The menu lists the models in the selected account's plan. Check the account switcher, then see [Models in the Console](/console/models). |
| History does not load | Refresh Console, confirm you are still signed in, and check the selected account. A run still works even if its history save fails. |
| A run is missing from History | Only successful runs are saved. The run may have expired after 30 days or been deleted. |
| Windows are answering different tasks | Choose the example again to fill one task into every window, then change only the model or parameter you want to compare. |
| Copied code cannot authenticate | Set `AUTOHAND_AI_API_KEY` on the server, confirm the key is active in [API Keys](/console/api-keys), and follow the [API-key setup guide](/agent-sdk/api-key-setup). |

You are done when the result answers the evidence you supplied, the run appears in **History**, restoring it brings back the same state, and your application runs the copied code with its own key.
