Skip to content

Start

Quickstart

Create an agent, start a run and watch it from the dashboard. About five minutes.

1. Get an api key

Sign in, then open Settings → API keys and create a key. It's shown once. Keys start with kl_live_ and carry a role: a developer key can create agents and runs, a viewer key can only read.

2. Install the sdk

pip install 'git+https://github.com/Nishu0/keel'  # python
npm install ./sdks/typescript  # typescript, from a checkout

3. Create an agent and run it

from keel.client import Keel

keel = Keel(api_key="kl_live_...")

agent = keel.agents.create(
    name="researcher",
    system_prompt="Answer with sources.",
    tools=["web_fetch", "current_time"],
)
run = keel.runs.create(agent["id"], {"task": "What changed in the latest Python release?"})

for event in keel.runs.stream(run["id"]):
    print(event["seq"], event["type"])

Every line printed is an event in the run's log. Open the run in the dashboard to see the same events folded into steps, with tokens, cost and timings.

No code?

On the Agents page, pick a template. keel creates the agent and starts its sample task so you can watch a run straight away, then edit the agent into your own.

NextRuns and the event log