Prompt: Install Aleph Across All Environments
Use this prompt with Claude Code (or any AI assistant with file access) to install Aleph on all your AI coding tools.
Prompt
I need you to install and configure Aleph (an MCP server for recursive LLM reasoning over large local data) across all my AI development environments.
**Target environments:**
1. Claude Code (CLI) - via ~/.claude/claude_desktop_config.json (macOS/Linux) or %USERPROFILE%\.claude\claude_desktop_config.json (Windows)
2. Claude Desktop - via ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
3. Cursor - via cursor MCP config
4. Windsurf - via windsurf MCP config
5. Codex CLI - via ~/.codex/config.toml (macOS/Linux) or %USERPROFILE%\.codex\config.toml (Windows)
6. Gemini CLI - via ~/.gemini/mcp.json
7. Kimi CLI - via ~/.kimi/mcp.json
**Tasks:**
1. First, check if aleph-rlm is installed:
```bash
pip show aleph-rlm || pip install "aleph-rlm[mcp]"
Run the automatic installer and see what it detects:
aleph-rlm install
For any environments not auto-detected, manually configure:
Claude Desktop:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"aleph": {
"command": "aleph",
"args": ["--enable-actions", "--tool-docs", "concise", "--workspace-mode", "any"]
}
}
}
Codex CLI:
- macOS/Linux:
~/.codex/config.toml
- Windows:
%USERPROFILE%\.codex\config.toml
[mcp_servers.aleph]
command = "aleph"
args = ["--enable-actions", "--tool-docs", "concise", "--workspace-mode", "any"]
Gemini CLI (~/.gemini/mcp.json):
{
"mcpServers": {
"aleph": {
"command": "aleph",
"args": ["--enable-actions", "--tool-docs", "concise", "--workspace-mode", "any"]
}
}
}
Kimi CLI (~/.kimi/mcp.json):
{
"mcpServers": {
"aleph": {
"transport": "stdio",
"command": "aleph",
"args": ["--enable-actions", "--tool-docs", "concise", "--workspace-mode", "any"]
}
}
}
Install skills (optional but recommended):
Download docs/prompts/aleph.md from the repo and save it to:
Claude Code:
- macOS/Linux:
~/.claude/commands/aleph.md
- Windows:
%USERPROFILE%\.claude\commands\aleph.md
Codex CLI:
- macOS/Linux:
~/.codex/skills/aleph/SKILL.md
- Windows:
%USERPROFILE%\.codex\skills\aleph\SKILL.md
Kimi CLI (recommended):
- User-level:
~/.config/agents/skills/aleph/SKILL.md
- Project-level:
.agents/skills/aleph/SKILL.md
Or from the installed package:
# macOS/Linux
mkdir -p ~/.codex/skills/aleph
cp "$(python -c "import aleph; print(aleph.__path__[0])")/../docs/prompts/aleph.md" ~/.codex/skills/aleph/SKILL.md
# Kimi CLI (user-level)
mkdir -p ~/.config/agents/skills/aleph
cp "$(python -c "import aleph; print(aleph.__path__[0])")/../docs/prompts/aleph.md" ~/.config/agents/skills/aleph/SKILL.md
Configure sub_query (optional):
If you want the API backend, set environment variables:
macOS/Linux (add to ~/.zshrc or ~/.bashrc):
export ALEPH_SUB_QUERY_API_KEY=sk-...
export ALEPH_SUB_QUERY_MODEL=your-model-name
# Optional: OpenAI-compatible base URL (Groq, Together, local LLMs, etc.)
export ALEPH_SUB_QUERY_URL=https://api.your-provider.com/v1
Windows (set via System Environment Variables or PowerShell $PROFILE):
$env:ALEPH_SUB_QUERY_API_KEY = "sk-..."
$env:ALEPH_SUB_QUERY_MODEL = "your-model-name"
CLI backends (claude, codex, gemini) do not require an API key. Aleph will auto-detect the first available backend unless you set ALEPH_SUB_QUERY_BACKEND.
Verify installation:
aleph-rlm doctor
Test by restarting each environment and checking if the aleph tools are available.
Important notes:
- The
--enable-actions flag allows file read/write and command execution
--enable-actions also enables rg-based search, smart loaders, and memory pack auto-save
- In CLI environments (Claude Code, Codex, Gemini),
sub_query can use the local CLI backend - no API key needed
- The installer should handle most of this automatically, but verify each environment works
- For per-project scoping, set
--workspace-root /absolute/path/to/project instead of --workspace-mode git. See MCP_SETUP.md for details.
- Some MCP clients don't reliably pass
env vars from config to the server process. If sub_query reports missing credentials, add exports to your shell profile and restart the client.
Please proceed step by step and report what you find in each environment.
---
## What this does
- Installs `aleph-rlm` Python package
- Configures MCP server in all supported AI coding environments
- Optionally sets up OpenAI-compatible API credentials for `sub_query`
- Enables action tools (file I/O, commands) where appropriate
1---2name: 1908-install-aleph-f718b7c73description: Prompt: Install Aleph Across All Environments4---5# Prompt: Install Aleph Across All Environments67Use this prompt with Claude Code (or any AI assistant with file access) to install Aleph on all your AI coding tools.89---1011## Prompt1213```14I need you to install and configure Aleph (an MCP server for recursive LLM reasoning over large local data) across all my AI development environments.1516**Target environments:**171. Claude Code (CLI) - via ~/.claude/claude_desktop_config.json (macOS/Linux) or %USERPROFILE%\.claude\claude_desktop_config.json (Windows)182. Claude Desktop - via ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)193. Cursor - via cursor MCP config204. Windsurf - via windsurf MCP config215. Codex CLI - via ~/.codex/config.toml (macOS/Linux) or %USERPROFILE%\.codex\config.toml (Windows)226. Gemini CLI - via ~/.gemini/mcp.json237. Kimi CLI - via ~/.kimi/mcp.json2425**Tasks:**26271. First, check if aleph-rlm is installed:28 ```bash29 pip show aleph-rlm || pip install "aleph-rlm[mcp]"30 ```31322. Run the automatic installer and see what it detects:33 ```bash34 aleph-rlm install35 ```36373. For any environments not auto-detected, manually configure:3839 **Claude Desktop:**40 - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`41 - Windows: `%APPDATA%\Claude\claude_desktop_config.json`4243 ```json44 {45 "mcpServers": {46 "aleph": {47 "command": "aleph",48 "args": ["--enable-actions", "--tool-docs", "concise", "--workspace-mode", "any"]49 }50 }51 }52 ```5354 **Codex CLI:**55 - macOS/Linux: `~/.codex/config.toml`56 - Windows: `%USERPROFILE%\.codex\config.toml`5758 ```toml59 [mcp_servers.aleph]60 command = "aleph"61 args = ["--enable-actions", "--tool-docs", "concise", "--workspace-mode", "any"]62 ```6364 **Gemini CLI** (~/.gemini/mcp.json):65 ```json66 {67 "mcpServers": {68 "aleph": {69 "command": "aleph",70 "args": ["--enable-actions", "--tool-docs", "concise", "--workspace-mode", "any"]71 }72 }73 }74 ```7576 **Kimi CLI** (~/.kimi/mcp.json):77 ```json78 {79 "mcpServers": {80 "aleph": {81 "transport": "stdio",82 "command": "aleph",83 "args": ["--enable-actions", "--tool-docs", "concise", "--workspace-mode", "any"]84 }85 }86 }87 ```88894. Install skills (optional but recommended):9091 Download `docs/prompts/aleph.md` from the repo and save it to:9293 **Claude Code:**94 - macOS/Linux: `~/.claude/commands/aleph.md`95 - Windows: `%USERPROFILE%\.claude\commands\aleph.md`9697 **Codex CLI:**98 - macOS/Linux: `~/.codex/skills/aleph/SKILL.md`99 - Windows: `%USERPROFILE%\.codex\skills\aleph\SKILL.md`100101 **Kimi CLI (recommended):**102 - User-level: `~/.config/agents/skills/aleph/SKILL.md`103 - Project-level: `.agents/skills/aleph/SKILL.md`104105 Or from the installed package:106 ```bash107 # macOS/Linux108 mkdir -p ~/.codex/skills/aleph109 cp "$(python -c "import aleph; print(aleph.__path__[0])")/../docs/prompts/aleph.md" ~/.codex/skills/aleph/SKILL.md110111 # Kimi CLI (user-level)112 mkdir -p ~/.config/agents/skills/aleph113 cp "$(python -c "import aleph; print(aleph.__path__[0])")/../docs/prompts/aleph.md" ~/.config/agents/skills/aleph/SKILL.md114 ```1151165. Configure `sub_query` (optional):117118 If you want the API backend, set environment variables:119120 **macOS/Linux** (add to ~/.zshrc or ~/.bashrc):121 ```bash122 export ALEPH_SUB_QUERY_API_KEY=sk-...123 export ALEPH_SUB_QUERY_MODEL=your-model-name124 # Optional: OpenAI-compatible base URL (Groq, Together, local LLMs, etc.)125 export ALEPH_SUB_QUERY_URL=https://api.your-provider.com/v1126 ```127128 **Windows** (set via System Environment Variables or PowerShell $PROFILE):129 ```powershell130 $env:ALEPH_SUB_QUERY_API_KEY = "sk-..."131 $env:ALEPH_SUB_QUERY_MODEL = "your-model-name"132 ```133134 CLI backends (`claude`, `codex`, `gemini`) do not require an API key. Aleph will auto-detect the first available backend unless you set `ALEPH_SUB_QUERY_BACKEND`.1351366. Verify installation:137 ```bash138 aleph-rlm doctor139 ```1401417. Test by restarting each environment and checking if the aleph tools are available.142143**Important notes:**144- The `--enable-actions` flag allows file read/write and command execution145- `--enable-actions` also enables rg-based search, smart loaders, and memory pack auto-save146- In CLI environments (Claude Code, Codex, Gemini), `sub_query` can use the local CLI backend - no API key needed147- The installer should handle most of this automatically, but verify each environment works148- For per-project scoping, set `--workspace-root /absolute/path/to/project` instead of `--workspace-mode git`. See MCP_SETUP.md for details.149- Some MCP clients don't reliably pass `env` vars from config to the server process. If `sub_query` reports missing credentials, add exports to your shell profile and restart the client.150151Please proceed step by step and report what you find in each environment.152```153154---155156## What this does157158- Installs `aleph-rlm` Python package159- Configures MCP server in all supported AI coding environments160- Optionally sets up OpenAI-compatible API credentials for `sub_query`161- Enables action tools (file I/O, commands) where appropriate