← Blog

Orgo computer use API: run an AI agent with one request

Send one OpenAI-compatible request and an agent does the task on your Orgo computer.

Updated

The Orgo computer use API is POST https://www.orgo.ai/api/v1/chat/completions. It is OpenAI-compatible, and it runs a whole computer use agent on an Orgo computer. You send a task in messages and the computer_id of a running computer. The agent reads the screen, clicks, types and runs commands until the task is done, then returns its final message in the chat completions format (Create chat completion). You point an OpenAI SDK at https://www.orgo.ai/api/v1 and add one field. You do not write the agent loop.

Two ways to drive a computer

Orgo also exposes each computer action as its own endpoint: screenshot, click, type, key, scroll and bash. With those you run the loop yourself, with any model (Use any model). The chat completions endpoint moves the loop to Orgo's side: one request in, one final answer out. You can use both on the same computer.

Orgo computer use APIYour own loop
What you writeOne chat completions requestScreenshot, model call, action dispatch, retries
Modelsorgo-agent by default, orgo-agent-opus-5.5, or a listed Claude modelAny model with computer use support
CoordinatesHandled by OrgoYours to convert where a model needs it, such as Gemini's 0-999 grid
BillingOrgo AI credits, or your own OpenAI or Anthropic keyYour model provider account
What you seeFinal message, step count, cost, optional text streamEvery screenshot and action

Sources: Create chat completion, Use any model, Gemini computer use. The hosted endpoint is the shorter path. Your own loop is the choice when you need a model the endpoint does not list, or need to inspect each action.

A request

Set ORGO_API_KEY to your Orgo API key and COMPUTER_ID to the id of a running computer:

python
import os
from openai import OpenAI
 
client = OpenAI(
    base_url="https://www.orgo.ai/api/v1",
    api_key=os.environ["ORGO_API_KEY"],
)
 
response = client.chat.completions.create(
    model="orgo-agent",
    messages=[{"role": "user", "content": "Open Chrome and search for the weather in Paris"}],
    extra_body={"computer_id": os.environ["COMPUTER_ID"]},
)
 
print(response.choices[0].message.content)
print(response.orgo["thread_id"], response.orgo["steps"], response.orgo["cost_cents"])

computer_id is an Orgo field, so the Python SDK sends it through extra_body. The OpenAI SDKs require model, so the example names orgo-agent. With cURL you can leave model out and get the default.

Models

Without a model, Orgo runs orgo-agent, shown in the app as Computer Use. It is Orgo's computer use engine on GPT-6.1 Terra, fast tier. It adapts to the computer, for example PowerShell on Windows and Cmd shortcuts on macOS. On Android computers the default is claude-sonnet-5.

When you send your own key and no model, the key decides. x-openai-key runs orgo-agent, also when you send both keys. x-anthropic-key alone runs claude-sonnet-5. On an Android computer both keys run claude-sonnet-5, and x-openai-key alone returns 400 own_key_unsupported.

The models you can name are orgo-agent, orgo-agent-opus-5.5 (the same engine on Claude Opus 5.5), claude-sonnet-5, claude-opus-5.5, claude-opus-5, claude-opus-4.8, claude-sonnet-4.6 and claude-opus-4.6. A named model runs as named. Any other value returns 400 invalid_model, and an orgo-agent model on an Android computer returns 400 model_unsupported_os. These IDs use a dot for point versions (claude-opus-5.5); Anthropic's own API uses a hyphen (claude-opus-5-5). The response's model field names the model that ran.

Steps

A step is one model call plus the computer actions it makes. A run takes up to 250 steps. max_steps can raise that to 500; a lower value is ignored. A run that reaches its limit returns normally with finish_reason: "length" and a final message saying it stopped. To continue, resend the transcript with a new user turn.

Streaming

With "stream": true the response is a standard stream of chat.completion.chunk events ending in data: [DONE]. Only the agent's text streams; screenshots, clicks and commands are not sent. The thread ID arrives in the X-Thread-Id header before the first chunk. The final chunk carries finish_reason, usage, and an orgo block with own_key (whose key paid, or null). Closing the connection stops the run at its next step. Steps already taken are billed.

Threads

A thread is a stored transcript attached to one computer. It is a record, not memory (Threads):

  • Passing a thread_id does not replay earlier turns to the model. The agent sees exactly the messages you send.
  • When a run ends, the thread's stored messages are replaced with that request's transcript plus the reply. Sending only the new turn erases earlier turns from the stored copy.

So keep the full transcript in your code, resend all of it on every request, and pass the same thread_id each time:

python
computer_id = os.environ["COMPUTER_ID"]
history = [{"role": "user", "content": "Open Chrome and go to github.com"}]
 
first = client.chat.completions.create(
    model="orgo-agent",
    messages=history,
    extra_body={"computer_id": computer_id},
)
 
history.append({"role": "assistant", "content": first.choices[0].message.content})
history.append({"role": "user", "content": "Search for 'orgo'"})
 
follow_up = client.chat.completions.create(
    model="orgo-agent",
    messages=history,  # the full transcript, not only the new turn
    extra_body={"computer_id": computer_id, "thread_id": first.orgo["thread_id"]},
)

A thread_id that is malformed or does not exist starts a new thread rather than failing. Threads are listed, created, read and deleted at https://www.orgo.ai/api/v1/threads, which needs an account-wide API key.

Billing

Runs draw on the AI credits of the computer's workspace owner, not the caller. A run costs the model provider's list price plus 10%, or the owner's own rate if the account has an AI pricing deal. orgo.cost_cents reports it, rounded up to a cent. orgo-agent runs Terra on its fast tier, which Orgo bills at twice Terra's standard rates. orgo-agent-opus-5.5 bills at standard rates.

A hold is placed when the request starts and settled against actual usage after the response. The run stops early when its cost comes within 25 cents of the balance it started with. A request from a workspace member that spends the owner's credits can use at most $5. Paid plans include monthly AI credits (pricing).

To pay with your own provider account, send your key in a header (extra_headers in the Python SDK). x-openai-key pays for orgo-agent. x-anthropic-key pays for the Claude models and orgo-agent-opus-5.5. No Orgo credits are held, cost_cents is 0, and orgo.own_key is openai or anthropic. orgo-agent asks OpenAI for its fast tier, so OpenAI bills your key at fast tier rates. Keys are used for that request only and are not stored.

python
response = client.chat.completions.create(
    model="orgo-agent",
    messages=[{"role": "user", "content": "Open Chrome and search for the weather in Paris"}],
    extra_body={"computer_id": os.environ["COMPUTER_ID"]},
    extra_headers={"x-openai-key": os.environ["OPENAI_API_KEY"]},
)
print(response.orgo["own_key"], response.orgo["cost_cents"])  # openai 0

A key that cannot pay for the named model is refused, not ignored. x-anthropic-key alone with orgo-agent, or x-openai-key alone with a Claude model, returns 400 own_key_model_mismatch, and nothing runs or bills. When the provider turns your key down, the error gives the provider's words without the key.

Errors

Branch on the error code, not the message (Create chat completion):

StatusCodeMeaning
400missing_computer_idNo computer_id in the body
400invalid_modelThe model is not on the list
400model_unsupported_osAn orgo-agent model was named for an Android computer
400context_overflowThe transcript is larger than the model's context window (non-streaming requests)
400own_key_unsupportedOnly x-openai-key, no model, and no OpenAI model runs on this computer
400own_key_model_mismatchYour key is for a different provider than the named model
400own_key_model_unavailableThe provider says your key cannot use that model
401invalid_api_keyAny authentication or access failure, including a computer in a workspace you can only view
401invalid_own_keyThe provider rejected your own key
402credits_exhaustedNot enough AI credits to place the hold
404computer_not_foundNo computer has that ID, or its trial or payment has lapsed
429rate_limitedToo many agent runs this minute or at once for the owner's plan (limit is chat_runs_per_minute or chat_runs_concurrent). Wait Retry-After seconds
429own_key_rate_limitedYour own key is over its provider's rate limit or quota
500internal_errorAn unexpected failure. Steps taken before it are billed. Retry with backoff
503model_not_configuredAn orgo-agent model is unavailable. Retry later or name a Claude model

Once a stream has started the status is already 200, so a failure arrives as one error event followed by data: [DONE]. If you read the stream yourself, treat a stream that ends without a chunk carrying finish_reason as failed.

Questions

Is this the same as OpenAI's computer use tool? No. As of October 2026, OpenAI's computer tool returns actions that your code carries out, and you send back a screenshot after each batch (OpenAI computer use guide). Orgo's endpoint runs the whole loop on an Orgo computer and returns the final message.

Do I need a computer first? Yes. computer_id must point at a running computer in a workspace you can write to. Create computer makes one.

Can I set a system prompt? No. Messages with a role other than user or assistant are dropped, because the agent brings its own instructions. Put yours in the first user message.

Can I send images? Yes, in user messages, as an https:// URL or a base64 data URL of a PNG, JPEG, GIF or WebP image.