
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@subcon/e2b-cli
Advanced tools
A developer-first autonomous agent that reasons and executes code in a secure cloud sandbox. This agent uses Subconscious for long-horizon reasoning and E2B for isolated code execution.
┌─┐┬ ┬┌┐ ┌─┐┌─┐┌┐┌┌─┐┌─┐┬┌─┐┬ ┬┌─┐
└─┐│ │├┴┐│ │ ││││└─┐│ ││ ││ │└─┐
└─┘└─┘└─┘└─┘└─┘┘└┘└─┘└─┘┴└─┘└─┘└─┘ + E2B Sandbox
npx @subcon/e2b-cli
The CLI will prompt you for API keys on first run and save them for future sessions.
npm install -g @subcon/e2b-cli
e2b-cli
# Install dependencies
bun install
# Set your API keys
export SUBCONSCIOUS_API_KEY=your_key_here # Get at https://subconscious.dev/platform
export E2B_API_KEY=your_key_here # Get at https://e2b.dev
# Run the agent
bun run agent
▸ Task › Analyze file: ./demo_data.csv and create a summary of hours worked per employee
▸ Context ›
▸ Task › Calculate the first 50 Fibonacci numbers and identify which ones are prime
▸ Context ›
▸ Task › Analyze file: ./demo_data.csv and create a bar chart of total billable hours by department. Save to output: ./chart.png
▸ Context › Use pandas and matplotlib
▸ Task › Analyze file: ./demo_data.csv and do the following:
1. Create a chart of hours by employee. Save to output: ./hours_chart.png
2. Write a markdown report with key insights. Save to output: ./analysis.md
▸ Context › Use pandas and matplotlib
The agent supports file upload and download:
| Syntax | Description | Example |
|---|---|---|
file: ./path | Upload a file to the sandbox | Analyze file: ./data.csv |
'/path/to/file' | Quoted path (drag-and-drop) | Analyze '/Users/me/data.csv' |
files: ./dir/*.csv | Upload multiple files (glob) | Process files: ./reports/*.csv |
output: ./path | Download output when done | Save chart to output: ./chart.png |
Tip: You can drag and drop files into the terminal and the quoted path will be automatically recognized and uploaded to the sandbox.
Supported output formats:
.png, .jpg, .gif, .webp, .svg.md, .txt, .html, .pdf.json, .csv, .xml.zip, .tar, .gz/home/user/input/ in the sandbox/home/user/output/ in the sandbox| Language | Runtime | Notes |
|---|---|---|
| Python | python3 | numpy, pandas, matplotlib pre-installed |
| JavaScript | node | Node.js runtime |
| TypeScript | ts-node | Via npx |
| Bash | bash | Shell scripts |
| Go | go run | Single file execution |
| Rust | rustc | Compiled before execution |
| C++ | g++ | Compiled with -O2 |
| C | gcc | Compiled with -O2 |
| Ruby | ruby | Standard runtime |
| Java | javac + java | Compiled and run |
┌─────────────────────────────────────────────────────────────────┐
│ CLI Agent │
├─────────────────────────────────────────────────────────────────┤
│ User Input -> File Parser -> Subconscious API -> Display │
│ | | │
│ Upload Files Stream Reasoning │
│ | | │
│ E2B Sandbox <--- Tool Calls (execute_code) │
│ | │
│ Download Outputs -> Local Filesystem │
└─────────────────────────────────────────────────────────────────┘
src/
cli/
run.ts # Interactive CLI with command history
fileParser.ts # Parses file:/output: references
e2b/
sandbox.ts # E2B sandbox wrapper with multi-language support
tools/
e2bServer.ts # HTTP server exposing execute_code tool
tunnel.ts # Tunnel management (localtunnel)
types/
agent.ts # TypeScript definitions
config.ts # Configuration loading
index.ts # Entry point
| Variable | Required | Description |
|---|---|---|
SUBCONSCIOUS_API_KEY | Yes | Your Subconscious API key |
E2B_API_KEY | Yes | Your E2B API key |
TUNNEL_URL | No | Use existing tunnel instead of auto-start |
VERBOSE | No | Enable verbose logging (true/false) |
Create agent.config.json to customize:
{
"tunnel": {
"enabled": true,
"autoStart": true,
"port": 3001
},
"tools": {
"port": 3001,
"host": "localhost"
},
"environment": {
"filterSensitive": true,
"sensitivePatterns": ["KEY", "SECRET", "TOKEN", "PASSWORD"]
}
}
The agent uses localtunnel which is installed automatically with bun install. If you're having issues:
TUNNEL_URL environment variable to bypass auto-startoutput: prefix in your task[file] Downloaded: at the endThe first run may take 30-60 seconds as E2B provisions the sandbox and installs packages. Subsequent runs are faster.
Apache-2.0
FAQs
CLI-first autonomous agent using Subconscious + E2B
The npm package @subcon/e2b-cli receives a total of 28 weekly downloads. As such, @subcon/e2b-cli popularity was classified as not popular.
We found that @subcon/e2b-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.