jetbrains-sandbox
它能做什么
它在 Linux 沙盒中设置 IntelliJ IDEA,并提供浏览器桌面,以及让智能体控制 IDE 的工具。适合希望智能体在真实 IntelliJ 实例中工作的开发者。
适用场景
- ✓当你希望智能体在运行中的 IntelliJ 内检查、编辑或调试代码时。
- ✓当你想在浏览器中查看在云端沙盒中运行的 IDE 时。
- ✓当你希望智能体自动化那些仅靠文件难以完成的 IDE 任务时。
技能链接
https://github.com/Kilo-Org/kilocode/blob/main/.kilo/skills/jetbrains-sandbox/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在云端沙盒中设置 IntelliJ 并提供浏览器视图,这样你可以打开我的项目,并在 IDE 中检查失败的测试。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体在沙盒中安装 IntelliJ、浏览器桌面以及 IDE 控制工具。除非你通过沙盒转发端口,否则端口仅保持在环回地址上;它也不会替你登录服务或接受协议。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
JetBrains Sandbox
Use this skill to give an agent a running IntelliJ instance and the means to control it. The setup provides IntelliJ IDEA, MCP Steroid, and a minimal browser desktop using TigerVNC, Openbox, and noVNC. It is not tied to testing a particular plugin or following a prescribed IDE workflow. The HTTP transport works through sandbox HTTPS proxies that break WebSocket upgrades.
Boundaries
- Tested on Debian 13, Linux x86-64, with Bun available. Allow roughly 8 GB RAM and 10 GB free disk for the IDE, archives, plugins, and caches.
- Installation needs root for apt and creating the IDE account. With dependencies
preinstalled, a non-root account can use
--skip-depsand run as itself. - No public tunnel or viewer password is created. The default bind is loopback.
Use
--host 0.0.0.0only behind the user's authenticated sandbox port forwarding. Binding only to127.0.0.1may make the platform report that nothing is listening. - Raw VNC and MCP remain bound to loopback even when the viewer is externally reachable.
- If a secure preview proxy rewrites
Host, pass its exact browser-facing origin with--origin https://your-preview-host. Arbitrary forwarded headers are not trusted. - Do not accept JetBrains agreements, start a trial, sign into services, copy the agent's credentials into the IDE, or dismiss unrelated dialogs automatically.
- All runtime state defaults to the current worktree's ignored
.kilo-dev/jetbrains-sandbox/. Never point--dirat the workspace itself. - Never overwrite plugin jars while that state directory's IDE is running. Stop first.
- Do not stop another session's IDE or alter the user's workspace ownership. A supplied
--projectmust already be accessible to the selected non-root--user.
Pinned Setup
| Component | Default |
|---|---|
| IntelliJ IDEA | 2026.1, including its bundled Java runtime |
| MCP Steroid | 0.102.0-r-c68d8f15d |
| Optional Kilo plugin | Signed 7.1.12 release, only with --with-kilo |
Downloads are SHA-256 checked against the tested artifacts. Versions and hashes live
together in script/setup.ts; update them intentionally rather than silently fetching
latest. A trusted local ZIP override is not checked against the release digest.
The default installs no Kilo plugin and builds no repository code. It opens an empty
workspace unless --project is supplied, without adding sample files to it.
For Kilo-specific work, opt in with --with-kilo, or pass
--kilo-zip /absolute/path/to/plugin.zip to install a local build. Building that ZIP is
a separate workflow, such as jetbrains-dev; it may need Java 21 and Maven access.
Do not silently substitute a released plugin for the user's local changes.
Install And Run
Run from the current worktree root:
bun .kilo/skills/jetbrains-sandbox/script/setup.ts install --host 0.0.0.0
Use a bounded background_process.monitor for a cold install. Downloads and extraction
can outlast one tool call; follow the returned process rather than starting another install.
Then start the foreground supervisor with background_process.start:
bun .kilo/skills/jetbrains-sandbox/script/setup.ts run
Use readiness pattern Desktop ready or port 6080. Do not use shell &, nohup, or
an untracked daemon. The supervisor runs VNC, Openbox, and IntelliJ as the non-root IDE
user, strips inherited agent credentials, and stops its supervised processes on termination.
It stops the desktop if an essential child exits; it does not silently restart the IDE.
JetBrains can retain a per-user helper daemon after the IDE closes. Do not kill shared
user daemons indiscriminately or affect another IDE session.
Open http://localhost:6080/ through the sandbox's secure forwarding. The user must finish
any first-run agreements and authentication required by their task. A listener alone
does not prove that the IDE or MCP is ready; inspect the UI and use status.
The viewer scales a fixed 1600x1000 desktop rather than shrinking the remote screen,
so first-run dialog buttons remain reachable in small browser windows. Use Fullscreen
for more readable text.
bun .kilo/skills/jetbrains-sandbox/script/setup.ts status
bun .kilo/skills/jetbrains-sandbox/script/setup.ts stop
Prefer quitting IntelliJ normally for graceful application shutdown. stop verifies the
supervisor's PID/start identity before signaling it. The tracked process can also be
stopped with background_process.stop. R
常见问题
运行它需要什么?
一个 Debian 13 Linux 沙盒,约 8 GB 内存和 10 GB 可用磁盘空间,以及 Bun。
IDE 会暴露到互联网上吗?
不会。不会创建公开隧道或查看器密码,默认绑定在环回地址上。
它会替我登录 JetBrains 吗?
不会。它不会接受协议、开始试用或登录服务。
详情
作者的原始描述
Install and operate IntelliJ in a Linux cloud sandbox. Provide a browser desktop and MCP Steroid so an agent can inspect, edit, debug, configure, or automate the IDE using whichever interface suits the task. Kilo installation and screenshot helpers are optional conveniences.
repo: Kilo-Org/kilocode
热度
- GitHub 星标
- 28k
- 排名
- #9873
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …