Computers for AI agents
Desktop infrastructure for AI agents.
``bash`
npm install orgoor
yarn add orgoor
pnpm add orgo
`typescript
import { Computer } from 'orgo';
// Create computer
const computer = await Computer.create();
// Control
await computer.leftClick(100, 200);
await computer.type("Hello world");
await computer.key("Enter");
await computer.screenshot(); // Returns Buffer
// Execute code
await computer.exec("import pyautogui; pyautogui.click(512, 384)");
// Cleanup
await computer.shutdown();
`
`typescript`
const computer = await Computer.create({
apiKey: 'your-api-key', // or set ORGO_API_KEY env var
projectId: 'existing-project-id', // optional
config: { / custom config / }, // optional
baseApiUrl: 'https://custom-api.com' // optional
});
#### Navigation
- leftClick(x, y) - Left mouse clickrightClick(x, y)
- - Right mouse click doubleClick(x, y)
- - Double clickscroll(direction, amount)
- - Scroll in a direction
#### Input
- type(text) - Type textkey(key)
- - Press key or key combination
#### View
- screenshot() - Get screenshot as BufferscreenshotBase64()
- - Get screenshot as base64 string
#### Execution
- exec(code, timeout?) - Execute Python codebash(command)
- - Execute bash commandwait(seconds)
- - Wait for specified seconds
#### AI Control
- prompt(options) - Control computer with Claude 4
#### Lifecycle
- status() - Get computer statusrestart()
- - Restart the computershutdown()
- - Terminate the computer
Full documentation: docs.orgo.ai
This package includes TypeScript declarations. All types are exported and available:
`typescript``
import type { ComputerConfig, ComputerStatus, PromptOptions } from 'orgo';
MIT