Tools & Automation

Bash and Code

Run any shell command. Execute any script. Like a developer with a real terminal.

MoClaw can run bash commands and execute Python, Node, Go, Rust, anything you have installed on your AI Cloud Computer. Useful for one-off scripts, batch jobs, file conversions, deployments, or just asking the AI to figure out why this command is hanging.

工作方式

3 步接入 Bash and Code,无需工程配置。

  1. 1

    Ask in plain English

    'Convert all PNGs in this folder to WebP', 'rename these files by their EXIF date', 'check why this server is slow'. MoClaw decides which command to run.

  2. 2

    Watch the output stream

    stdout and stderr stream into the chat in real time. Long-running commands show progress; you can interrupt with a stop button.

  3. 3

    It can fix its own mistakes

    If a command fails — wrong flag, missing dependency, permission denied — the model reads the error and tries again, usually within one or two retries.

可以这样说

可以直接复制到 Bash and Code 的真实 prompts。

  • Convert all PNGs in ~/screenshots to WebP at 80% quality, then move the originals to ~/archive.
  • ssh into prod-1, tail the nginx access log for 30 seconds, and tell me what the top 5 source IPs are.
  • Write and run a benchmark comparing pandas read_csv vs pyarrow on this 500MB file.

分步演示

发送 prompt 后实际会发生什么。

Prompt 01 4 步

“Why is my Postgres query slow? Connection string is in ~/.pg-creds.”

MoClaw 会做什么

  1. 1 Reads ~/.pg-creds (asks for confirmation first since it contains credentials).
  2. 2 Connects with psql and runs EXPLAIN ANALYZE on the query you flagged.
  3. 3 Spots a sequential scan over 4M rows where an index on (user_id, created_at) would help.
  4. 4 Generates the CREATE INDEX statement and a rollback statement, ready to paste.
结果

Replies: 'Found it — the planner is doing a sequential scan because there's no index on (user_id, created_at). Adding the composite index drops the cost from 84,000 to 12. Here's the CREATE INDEX statement and a rollback if you need it.' You apply it; the next query runs in 14ms.

FAQ

关于价格、隐私和限制的快速回答。

Where do the commands actually run?
On your AI Cloud Computer, a Linux sandbox tied to your account. Not on your local laptop, and not on shared infra — your own isolated VM.
Can it run dangerous commands?
MoClaw asks for confirmation on anything destructive (rm -rf, force-push, dropping tables) and on anything that touches credentials. You can grant standing approval for specific tools in Settings then Permissions.
Can I run my own scripts?
Yes. Upload a script to ~/scripts and ask MoClaw to run it. It understands script arguments and reads the script's source to know what it expects.
Does this work with my own SSH keys to other servers?
Yes. Add a private key to ~/.ssh on your cloud computer and reference it in your prompt. Keys never leave your sandbox.

免费试用 MoClaw。

每月 1,000 credits,或者 自带 API Key 获得无限用量。

随时取消