curl --request GET \
--url https://api.runaether.dev/agent \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/agent"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/agent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/agent"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/agent")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/agent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"balance": {
"exhausted": true,
"microdollars": 123
},
"browser_tools": true,
"created_at": "2023-11-07T05:31:56Z",
"cron_model": "claude-fable-5-1",
"daily_cap_microdollars": 123,
"default_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_used_at": "2023-11-07T05:31:56Z",
"model": "claude-fable-5-1",
"pending_memory_edit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"runs_on": {
"runs_on": "aether"
},
"state": "provisioning",
"timezone": "<string>",
"usage_this_month": {
"month": "<string>",
"spent_microdollars": 123
},
"usage_today": {
"day": "<string>",
"spent_microdollars": 123
}
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Get your agent
Reads the caller’s personal agent: its state, settings and models, what it runs on, its default project, its daily spend cap with what it spent today and this month, the balance that pays for it, and what it takes next.
Use this tool when you need to:
- Check whether the caller has a personal agent and what state it is in (running, asleep, paused, resuming)
- See what the agent runs on and on which model, its daily spend cap, and what it spent today and this month
- Find the message the agent takes next, or the edit of its memory it applies next
Examples:
- GET /agent
Hints:
- Takes no parameters. state is the agent’s lifecycle state: running; suspending and idle, asleep and woken by the next message; waking and resuming, coming up; provisioning and booting, being created; updating, moving onto a new image; pausing and paused, backed up; lost, its machine gone; destroying, being deleted.
- runs_on is aether (Aether inference) or stored with the connection’s id, option and name; model is what the agent converses on and cron_model what its scheduled jobs run on unless a job names another (Claude Haiku 5.5 or GPT-6 Luna, from the model’s family); default_project_id is the project’s id, null while it has none; browser_tools is whether it may drive a browser.
- daily_cap_microdollars is its daily spend cap; usage_today and usage_this_month are what it spent, the day and the month in the caller’s timezone (timezone); balance is the caller’s personal organization’s Aether inference balance, which pays for it, with exhausted once it is used up.
- pending_message_id is the message it takes next (listAgentMessages) and pending_memory_edit_id the edit of its memory it applies next (getAgentMemoryEdit), each null when none is pending.
- Use getAgentMemory instead for its memory, listAgentToolUsage for its tool calls this month, getAgentPhone for the caller’s phone link, and patchAgent to change the agent.
- Any signed-in user, for their own agent alone, the agent host’s grant included; refused with 404 agent_not_found until they have one.
curl --request GET \
--url https://api.runaether.dev/agent \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/agent"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/agent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/agent"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/agent")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/agent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"balance": {
"exhausted": true,
"microdollars": 123
},
"browser_tools": true,
"created_at": "2023-11-07T05:31:56Z",
"cron_model": "claude-fable-5-1",
"daily_cap_microdollars": 123,
"default_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_used_at": "2023-11-07T05:31:56Z",
"model": "claude-fable-5-1",
"pending_memory_edit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"runs_on": {
"runs_on": "aether"
},
"state": "provisioning",
"timezone": "<string>",
"usage_this_month": {
"month": "<string>",
"spent_microdollars": 123
},
"usage_today": {
"day": "<string>",
"spent_microdollars": 123
}
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Response
OK
The most your agent may spend from your balance in a day, over every model call it makes on Aether inference and every tool call while tool calls are charged, in millionths of a US dollar, a whole number of cents. Such a call is refused (402 agent_host_daily_cap_reached) once the day's settled spend plus what the agent's calls in flight hold reaches it, until midnight in your timezone, until calls in flight settle under it, or until the cap is raised past them.
The host's lifecycle state. running: Hermes takes messages now; suspending and idle: asleep, woken by the next message; waking, resuming: coming up for a message; provisioning and booting: being created; updating: moving onto a new image; pausing and paused: backed up after thirty days unused, or paused by you, and resumed by you (a message from the web does not resume it); lost: its machine is gone and only deleting it helps; destroying: being deleted.
provisioning, booting, running, suspending, idle, waking, updating, pausing, paused, resuming, lost, destroying, destroyed