@llmstudios/cuse
v0.0.83
Published
Toolkit for implementing computer usage capabilities for AI agents
Maintainers
Readme
🚀 Cuse
AI Computer Use Abstraction Layer — toolkit for implementing computer usage capabilities for AI agents 🤖
✨ Features
- 💻 Computer Interaction: screenshots, typing, mouse actions
- 📝 Text Editor Operations: view, create, edit files
- 🔧 Command Execution: terminal commands, restart
- 🔌 Extensible Framework: customizable functionalities
- Currently supports Linux Ubuntu via local Docker image 🚀
🚀 Quickstart
Setup and start the Linux Ubuntu instance:
npx @llmstudios/cuse startInstall the Cuse package:
npm install @llmstudios/cuseCreate a Computer instance
import { Computer } from "@llmstudios/cuse";
const computer = new Computer();Use the computer.tools in your AI SDK tool parameter
const tools = computer.tools;
const stream = streamText({
model: anthropic("claude-3-5-sonnet-latest"),
messages,
tools: {
...computer.tools,
},
maxSteps: 30,
});⚡ Usage
- Linux Implementation Available: Use the
Computerclass to interact with the Linux Ubuntu instance. - Methods for:
- Computer Interaction:
screenshot(),key(),type(),mouseMove(),click(), etc. - Terminal Commands:
command(),restart() - Text Editor:
view(),create(),strReplace(),insert(),undoEdit()
- Computer Interaction:
🛣️ Roadmap
- 🌐 macOS, Windows, Cloud VM support
- 🔑 Authentication Injection
- ☁️ Hosted Service
- 🧠 Stateful Machines
- 📹 React Components for VM video streaming
🤝 Contributing
- Suggestions, bug reports, feature requests: open issue or pull request
📜 License
- MIT License — see LICENSE file
💬 Get in Touch
- Join community discussions, feature requests, or just say hello 👋
📚 References
- Created by LLM Studios
- Caution Notice by Anthropic
