Connect an outside agent
Another AI agent, or a script, can use your OtoDock from outside. You give it a personal API key, and it acts as you. It never does more than you can. An agent that reads this page knows how to connect.
Give it a key
Create a key under User Settings → Integrations, in API Keys. You pick:
- the agents it reaches
- when it expires
- what it may do: chats, tasks, files, notifications, your webhook triggers
- whether it may run without asking
Without that last tick, the key works only in chats in Ask or Plan mode. There, each change the agent makes waits for your approval in the dashboard. Running a task needs the tick.
What you can ask for
- "Run this on my OtoDock." It starts a chat with one of your agents and waits for the answer.
- "Run my weekly report." It runs a task and reads the result.
- "Put this file in my workspace." It reads and writes files in your own folder and the shared workspace of an agent.
- "Tell me when it is done." It sends you a notification.
How it connects
Every call goes to your install's address, with the key as a bearer token:
Authorization: Bearer <your-api-key>
Your install describes every call at /v1/api/openapi.json.
OtoDock also has a small program for the terminal, the otodock command. Each of its
commands makes one of these calls for you, so a person or a script needs no code. It is one
Python file. Download it from the link beside your keys, or like this:
curl -fsS -H "Authorization: Bearer <your-api-key>" -o otodock.py \
https://otodock.example.com/v1/api/otodock.py
python3 otodock.py login # asks for your address and your key
python3 otodock.py agents
python3 otodock.py chat send --agent my-agent --wait "Summarise today's tickets"
python3 otodock.py --help lists the rest: tasks, files and notifications.
To learn how OtoDock works, an agent reads these docs, or the platform skill that OtoDock's own agents use.
Next steps
- API & Webhooks →: keys, webhooks and login gateways.
- Tasks →: the work a key can run.