Find or create the chat of a terminal session
curl --request PUT \
--url https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"branch": "<string>",
"folder": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"remote": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}"
payload = {
"branch": "<string>",
"folder": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"remote": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
branch: '<string>',
folder: '<string>',
observed_at: '2023-11-07T05:31:56Z',
remote: '<string>',
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}', 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/computers/{computerID}/terminal-chats/{sessionID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'branch' => '<string>',
'folder' => '<string>',
'observed_at' => '2023-11-07T05:31:56Z',
'remote' => '<string>',
'project_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}"
payload := strings.NewReader("{\n \"branch\": \"<string>\",\n \"folder\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"remote\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"branch\": \"<string>\",\n \"folder\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"remote\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"branch\": \"<string>\",\n \"folder\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"remote\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"chat": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session_gone_at": "2023-11-07T05:31:56Z",
"status": "running",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"kind": "chat"
}{
"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>"
}
]
}{
"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>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Computers
Find or create the chat of a terminal session
Finds the chat of a Claude Code session the caller runs in their terminal, in a checkout on one of their computers, or creates it: a terminal chat of the checkout's task, which the first session of the checkout creates. A terminal chat is visible to the caller alone.
Use this tool when you need to:
- Mirror a session the machine bridge saw, from its hooks or its session file, as a chat
- Report the branch a checkout is on
Examples:
- PUT /computers/{computerID}/terminal-chats/{sessionID} {"folder": "/Users/ada/src/aether", "remote": "https://github.com/acme/aether", "branch": "main", "observed_at": "2026-11-07T10:00:00Z"}
Hints:
- sessionID is Claude Code's own id of the session. A chat is identified by its computer and session id: asking again answers the same chat, whichever folder of the computer the session is resumed in. A new chat is idle from observed_at, on the computer's clock.
- folder is the top of the git checkout the session runs in; remote is its origin as a github.com repository URL; branch is the branch the checkout is on, null on a detached HEAD, and is recorded as the work tree's branch.
- The checkout's task is found or created as findWorkTreeTask finds it, and refused in the same words: several projects that connect the repository answer {"kind": "choose_project"}, and asking again with project_id creates the chat there; otherwise the answer is {"kind": "chat"} with the chat.
- A session whose chat its person removed from Aether (removeTaskChat) is refused with 403 terminal_chat_removed: it is never mirrored again. Stop asking for it.
- A session new to the work tree of an archived task is refused with 403 task_archived: it is not mirrored, and the task stays archived. The sessions the task holds already are found as before, read-only in Aether. Once the task is unarchived, its folder takes new sessions again.
- Only the grant of the caller's coding agent's bridge calls it, the machine bridge on the computer: a session or an API key is refused with 403 credential_kind_not_admitted.
- The call presents the computer's own secret, which aether setup keeps on it, in the Aether-Computer-Secret header. A computer that has none is refused with 403 computer_needs_setup: update the aether CLI there and run aether setup. A call that presents no secret, or another, is refused with 403 computer_set_up_elsewhere.
PUT
/
computers
/
{computerID}
/
terminal-chats
/
{sessionID}
Find or create the chat of a terminal session
curl --request PUT \
--url https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"branch": "<string>",
"folder": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"remote": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}"
payload = {
"branch": "<string>",
"folder": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"remote": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
branch: '<string>',
folder: '<string>',
observed_at: '2023-11-07T05:31:56Z',
remote: '<string>',
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}', 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/computers/{computerID}/terminal-chats/{sessionID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'branch' => '<string>',
'folder' => '<string>',
'observed_at' => '2023-11-07T05:31:56Z',
'remote' => '<string>',
'project_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}"
payload := strings.NewReader("{\n \"branch\": \"<string>\",\n \"folder\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"remote\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"branch\": \"<string>\",\n \"folder\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"remote\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/computers/{computerID}/terminal-chats/{sessionID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"branch\": \"<string>\",\n \"folder\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"remote\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"chat": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session_gone_at": "2023-11-07T05:31:56Z",
"status": "running",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"kind": "chat"
}{
"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>"
}
]
}{
"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>"
}
]
}{
"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
Path Parameters
Body
application/json