decimalai init writes that code for you, so you don’t need any to start.
There are three ways to set one up. They differ only in where the prompt and skills come from; all three end with the same handful of commands.
Before you start
- A DecimalAI account. The Free plan includes one agent; sign up.
- A DecimalAI API key from Settings → API keys.
- Python 3.10 or later.
- An OpenAI API key. The generated agent calls
gpt-4o-miniby default, billed to your OpenAI account.
1. Create the agent
- From scratch
- From a skill pack
- From skills you pick
- Open app.decimal.ai/agents/new, or All agents → + New agent.
- Give it a name: lowercase letters, numbers and hyphens, like
refund-bot. Your code finds the agent by this name, exactly as typed. - Optionally say what it does and write a system prompt. You can leave the prompt empty and fill it in later.
- Click Create agent.
2. Run it
Use the name you gave the agent in place ofrefund-bot:
decimalai init refund-botlooks the agent up by name and writesagent.py: a LangChain agent that reads its system prompt from your workspace when it starts and receives its skills on every turn. The top ofagent.pylists the skills it will be offered.python agent.pyasks the agent “What can you help me with?” and prints the answer.
agent.py, or call it from your own code:
--framework openai-agents, --framework pydantic-ai or --framework adk to decimalai init, and install what it prints.
decimalai init with an agent name writes your agent file. Without a name, it only checks your API key and sends one test trace — that is the first step of the Quickstart.3. See what it did
Each run appears on the agent’s page in the dashboard,app.decimal.ai/agents/refund-bot, within a few seconds. Open a run on the Traces tab to see the question, the answer, and under Active Skills which skills it used.
Change it later
If something goes wrong
No agent named …— the name in the command doesn’t match the agent in your workspace. Names are exact; the error suggests the closest match.ModuleNotFoundError— rerun thepip installline inside the same virtual environment you runagent.pyfrom.OPENAI_API_KEY is not set—agent.pychecks for your model key before it starts. Export it in the shell you run it from.- No run on the Traces tab — check that
DECIMAL_API_KEYis set in the shell that ranagent.py.
Next
Assemble an agent from skills
How skills reach the model each turn, and how to choose them from the registry.
Catch regressions
Add the GitHub Action so every change to the agent gets an impact report.