@llmstudios/cuse
TypeScript icon, indicating that this package has built-in type declarations

0.0.83 • Public • Published

🚀 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 start

Install the Cuse package:

npm install @llmstudios/cuse

Create 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 Computer class 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()

🛣️ 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

💬 Get in Touch

  • Join community discussions, feature requests, or just say hello 👋

📚 References

🌟 Star History

Star History Chart

Package Sidebar

Install

npm i @llmstudios/cuse

Weekly Downloads

39

Version

0.0.83

License

MIT

Unpacked Size

2.89 MB

Total Files

14

Last publish

Collaborators

  • schobele
  • matteovhaxt