tekscode DOCS
Search docs /
Get an API key
QUICKSTART

Ship an agent in 5 minutes.

Install the SDK, hire a library agent, then replace it with your own file when you need to. Everything below works against tekscode cloud and a self-hosted runtime without changes.

TERMINALCOPY
npm i -g tekscode
tekscode login
tekscode hire support-triage --budget 40/day

That agent is now live with a daily cost ceiling. It will stop and escalate rather than exceed it.

Core concepts

{{ c.name }}

{{ c.desc }}

Agent spec

An agent is one file. It declares the tools it may touch, the budget it may spend, and the condition that means it is done. Nothing implicit.

agents/credit_memo.pyPYTHON
from tekscode import agent, tools

@agent(
    name="credit-memo",
    budget="$0.40/run",
    done=lambda s: s.memo_written and s.reviewer_notified,
)
def credit_memo(ctx, account_id: str):
    facts = ctx.use(tools.warehouse).query(
        "select * from accounts where id = ?", account_id
    )
    prior = ctx.use(tools.docs).search(f"memo {account_id}", k=3)

    memo = ctx.think(
        "Draft a credit memo. Cite every number.",
        facts=facts, prior=prior,
    )
    ctx.use(tools.docs).write(f"memos/{account_id}.md", memo)
    ctx.notify("credit-team", f"Memo ready for {account_id}")

done is required. An agent without a terminal condition will not deploy — that is how a run gets billed once and only once.

REST reference

{{ e.method }} {{ e.path }} {{ e.desc }}

Rate limits

SCOPE
LIBRARY
FORGE
Runs started / min
30
600
Concurrent runs
5
250
Trace reads / min
120
1,200
<- OVERVIEW PRICING ->