Skip to content

Commit 495b806

Browse files
committed
cp dines
1 parent 228b61c commit 495b806

12 files changed

Lines changed: 22 additions & 486 deletions

File tree

CLAUDE_SETUP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This guide will walk you through connecting the Runloop MCP server to Claude Des
55
## Prerequisites
66

77
1. Make sure you have Claude Desktop installed
8-
2. Authenticate with Runloop: `rli auth`
8+
2. Set your API key: `export RUNLOOP_API_KEY=your_api_key_here`
99
3. Make sure `rli` is installed globally and in your PATH
1010

1111
## Quick Setup (Automatic)
@@ -108,7 +108,7 @@ If not found:
108108

109109
### "API key not configured"
110110

111-
Run `rli auth` to configure your API key before using the MCP server.
111+
Set the `RUNLOOP_API_KEY` environment variable before using the MCP server.
112112

113113
### Claude doesn't show Runloop tools
114114

MCP_COMMANDS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ If you get "command not found: rli":
148148

149149
### API key not configured
150150

151-
Run `rli auth` before using the MCP server.
151+
Set the `RUNLOOP_API_KEY` environment variable before using the MCP server.
152152

153153
### Port already in use
154154

MCP_README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,12 @@ Example for Claude Code or other MCP clients supporting HTTP:
131131

132132
## Authentication
133133

134-
The MCP server uses the same API key configuration as the CLI. Make sure you've authenticated first:
134+
The MCP server uses the same API key configuration as the CLI. Set your API key:
135135

136136
```bash
137-
rli auth
137+
export RUNLOOP_API_KEY=your_api_key_here
138138
```
139139

140-
The server will automatically use your stored API credentials.
141-
142140
## Example Usage with Claude
143141

144142
Once configured, you can ask Claude to perform Runloop operations:
@@ -162,7 +160,7 @@ Claude will use the MCP tools to interact with your Runloop account and provide
162160

163161
If the stdio MCP server isn't working:
164162

165-
1. Make sure you've run `rli auth` to configure your API key
163+
1. Make sure `RUNLOOP_API_KEY` environment variable is set
166164
2. Check that the `rli` command is in your PATH
167165
3. Restart Claude Desktop after updating the configuration
168166
4. Check Claude's logs for any error messages
@@ -171,15 +169,15 @@ If the stdio MCP server isn't working:
171169

172170
If the HTTP MCP server isn't working:
173171

174-
1. Make sure you've run `rli auth` to configure your API key
172+
1. Make sure `RUNLOOP_API_KEY` environment variable is set
175173
2. Check that the port isn't already in use
176174
3. Verify the server is running: `curl http://localhost:3000/sse`
177175
4. Check your firewall settings if connecting remotely
178176
5. Look at the server logs for error messages
179177

180178
### Common Issues
181179

182-
- **"API key not configured"**: Run `rli auth` to set up your credentials
180+
- **"API key not configured"**: Set `RUNLOOP_API_KEY` environment variable
183181
- **Port already in use**: Stop other services or use a different port with `--port`
184182
- **Connection refused**: Make sure the server is running and accessible
185183

README.md

Lines changed: 5 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ A beautiful, interactive CLI for managing Runloop devboxes built with Ink and Ty
66

77
- 🎨 Beautiful terminal UI with colors and gradients
88
- ⚡ Fast and responsive with pagination
9-
- 🔐 Secure API key management
109
- 📦 Manage devboxes, snapshots, and blueprints
1110
- 🚀 Execute commands in devboxes
1211
- 📤 Upload files to devboxes
@@ -33,90 +32,31 @@ npm link
3332

3433
## Setup
3534

36-
Configure your API key using either method:
37-
38-
### Option 1: Environment Variable (Recommended for CI/CD)
35+
Configure your API key:
3936

4037
```bash
4138
export RUNLOOP_API_KEY=your_api_key_here
4239
```
4340

44-
### Option 2: Interactive Setup
45-
46-
```bash
47-
rli auth
48-
```
49-
5041
Get your API key from [https://runloop.ai/settings](https://runloop.ai/settings)
5142

5243
## Usage
5344

54-
### Authentication
55-
56-
```bash
57-
# Interactive setup (stores API key locally)
58-
rli auth
59-
60-
# Or use environment variable
61-
export RUNLOOP_API_KEY=your_api_key_here
62-
```
63-
64-
The CLI will automatically use `RUNLOOP_API_KEY` if set, otherwise it will use the stored configuration.
65-
6645
### Theme Configuration
6746

68-
The CLI supports both light and dark terminal themes with automatic detection:
47+
The CLI supports both light and dark terminal themes. Set the theme via environment variable:
6948

7049
```bash
71-
# Interactive theme selector with live preview
72-
rli config theme
73-
74-
# Or set theme directly
75-
rli config theme auto # Auto-detect terminal background (default)
76-
rli config theme light # Force light mode (dark text on light background)
77-
rli config theme dark # Force dark mode (light text on dark background)
78-
79-
# Or use environment variable
80-
export RUNLOOP_THEME=light
50+
export RUNLOOP_THEME=light # Force light mode (dark text on light background)
51+
export RUNLOOP_THEME=dark # Force dark mode (light text on dark background)
8152
```
8253

83-
**Interactive Mode:**
84-
85-
- When you run `rli config theme` without arguments, you get an interactive selector
86-
- Use arrow keys to navigate between auto/light/dark options
87-
- See live preview of colors as you navigate
88-
- Press Enter to save, Esc to cancel
89-
9054
**How it works:**
9155

92-
- **auto** (default): Uses dark mode by default (theme detection is disabled to prevent terminal flashing)
56+
- **auto** (default): Uses dark mode by default
9357
- **light**: Optimized for light-themed terminals (uses dark text colors)
9458
- **dark**: Optimized for dark-themed terminals (uses light text colors)
9559

96-
**Terminal Compatibility:**
97-
98-
- Works with all modern terminals (iTerm2, Terminal.app, VS Code integrated terminal, tmux)
99-
- The CLI defaults to dark mode for the best experience
100-
- You can manually set light or dark mode based on your terminal theme
101-
102-
**Note on Auto-Detection:**
103-
104-
- Auto theme detection is **disabled by default** to prevent screen flashing
105-
- To enable it, set `RUNLOOP_ENABLE_THEME_DETECTION=1`
106-
- If you use a light terminal, we recommend setting: `rli config theme light`
107-
- The result is cached, so subsequent runs are instant (no flashing!)
108-
- If you change your terminal theme, you can re-detect by running:
109-
110-
```bash
111-
rli config theme auto
112-
```
113-
- To manually set your theme without detection:
114-
```bash
115-
export RUNLOOP_THEME=dark # or light
116-
# Or disable auto-detection entirely:
117-
export RUNLOOP_DISABLE_THEME_DETECTION=1
118-
```
119-
12060
### Devbox Commands
12161

12262
```bash

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"dependencies": {
5757
"@modelcontextprotocol/sdk": "^1.19.1",
5858
"@runloop/api-client": "^1.0.0",
59-
"@runloop/rl-cli": "^0.1.2",
6059
"@types/express": "^5.0.3",
6160
"chalk": "^5.3.0",
6261
"commander": "^14.0.1",

src/cli.ts

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -26,43 +26,6 @@ program
2626
.description("Beautiful CLI for Runloop devbox management")
2727
.version(VERSION);
2828

29-
program
30-
.command("auth")
31-
.description("Configure API authentication")
32-
.action(async () => {
33-
const { default: auth } = await import("./commands/auth.js");
34-
auth();
35-
});
36-
37-
// Config commands
38-
const config = program
39-
.command("config")
40-
.description("Configure CLI settings")
41-
.action(async () => {
42-
const { showThemeConfig } = await import("./commands/config.js");
43-
showThemeConfig();
44-
});
45-
46-
config
47-
.command("theme [mode]")
48-
.description("Get or set theme mode (auto|light|dark)")
49-
.action(async (mode?: string) => {
50-
const { showThemeConfig, setThemeConfig } = await import(
51-
"./commands/config.js"
52-
);
53-
54-
if (!mode) {
55-
showThemeConfig();
56-
} else if (mode === "auto" || mode === "light" || mode === "dark") {
57-
setThemeConfig(mode);
58-
} else {
59-
console.error(
60-
`\n❌ Invalid theme mode: ${mode}\nValid options: auto, light, dark\n`,
61-
);
62-
processUtils.exit(1);
63-
}
64-
});
65-
6629
// Devbox commands
6730
const devbox = program
6831
.command("devbox")
@@ -642,11 +605,9 @@ program
642605
const { initializeTheme } = await import("./utils/theme.js");
643606
await initializeTheme();
644607

645-
// Check if API key is configured (except for auth, config, and mcp commands)
608+
// Check if API key is configured (except for mcp commands)
646609
const args = process.argv.slice(2);
647610
if (
648-
args[0] !== "auth" &&
649-
args[0] !== "config" &&
650611
args[0] !== "mcp" &&
651612
args[0] !== "mcp-server" &&
652613
args[0] !== "--help" &&
@@ -655,7 +616,9 @@ program
655616
) {
656617
const config = getConfig();
657618
if (!config.apiKey) {
658-
console.error("\n❌ API key not configured. Run: rli auth\n");
619+
console.error(
620+
"\n❌ API key not configured. Set RUNLOOP_API_KEY environment variable.\n",
621+
);
659622
processUtils.exit(1);
660623
}
661624
}

src/commands/auth.tsx

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)