Prerequisites
Before you begin, make sure you have:- Python 3.12 or higher installed
- uv package manager
- An Anthropic API key (for Claude Agent SDK) or an API key from another LLM provider
Grip AI uses the Claude Agent SDK by default for the best agentic experience. You can also use LiteLLM engine for 15+ other providers (OpenAI, DeepSeek, Groq, Gemini, Ollama, etc.).
Installation
Run the onboarding wizard
The interactive setup wizard configures everything you need:The wizard will:
- Ask you to choose your engine: Claude Agent SDK (recommended) or LiteLLM (15+ providers)
- Prompt for your API key (Anthropic, OpenAI, or other provider)
- Help you select a default model
- Initialize the workspace at
~/.grip/workspace/ - Test connectivity to ensure everything works
Your First Conversation
Start interactive chat
Launch the agent in interactive mode:You’ll see a prompt where you can start chatting with the AI.
Interactive Mode Commands
When runninggrip agent in interactive mode, you have access to these slash commands:
| Command | Description |
|---|---|
/new | Start a fresh conversation |
/clear | Clear conversation history |
/undo | Remove last exchange |
/rewind N | Rewind N exchanges |
/compact | Compress session history to save tokens |
/copy | Copy last response to clipboard |
/model <name> | Switch AI model (e.g., /model openai/gpt-4o) |
/provider | Show current provider details |
/tasks | Show scheduled cron tasks |
/trust <path> | Grant agent access to a directory |
/trust revoke <path> | Revoke agent access to a directory |
/status | Show session info (model, message count, memory) |
/mcp | List MCP servers |
/doctor | Run diagnostics |
/help | List all commands |
/exit | Exit grip |
Starting the Gateway
The gateway is Grip AI’s long-running process that connects everything — Telegram bots, Discord, Slack, cron jobs, the REST API, and more.Launch the gateway
If you haven’t configured any channels (Telegram, Discord, Slack), the gateway will still start the REST API on port 18800.
Testing the API
The REST API requires authentication with a bearer token. On first run, Grip AI auto-generates a token and prints it to the console.Make an authenticated request
Use the token to send a chat message:The agent will respond with a JSON object containing its response.
Common Tasks
Switch AI Models
You can switch models at any time:Grant Directory Access
Grip AI is sandboxed to its workspace by default. To work with files outside~/.grip/workspace/, you must explicitly trust directories:
Set Up Telegram
Connect Grip AI to Telegram for mobile access:Create a bot with BotFather
- Open Telegram and search for @BotFather
- Send
/newbotand follow the prompts - Copy the bot token (looks like
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11)
Schedule Recurring Tasks
Create cron jobs that run automatically:--reply-to so results are delivered back to your chat.
Create Multi-Step Workflows
For complex tasks, the agent automatically creates a task list using thetodo_write tool. You can view active tasks:
pending, in_progress, completed) as it works, and the active task list is automatically injected into every prompt so it never loses track — even across long sessions with context compaction.
Troubleshooting
Command not found: grip
Command not found: grip
Solution:If you installed via Add this to your shell profile (
uv tool install, make sure the uv bin directory is in your PATH:~/.bashrc, ~/.zshrc, etc.) to make it permanent.API authentication failed
API authentication failed
Solution:
- Make sure you’re using the correct token from the initial gateway startup
- Check that the
Authorizationheader format is correct:Bearer grip_YOUR_TOKEN - Verify the token in your config:
grip config show | grep auth_token
Agent can't access my files
Agent can't access my files
Solution:Grip AI is sandboxed to View trusted directories with
~/.grip/workspace/ by default. You need to explicitly trust directories:/trust (no arguments).Gateway won't start (port in use)
Gateway won't start (port in use)
Solution:If port 18800 is already in use, you can change it:
Telegram bot not responding
Telegram bot not responding
Solution:
- Verify your bot token:
grip config show | grep telegram - Check that Telegram is enabled:
grip config set channels.telegram.enabled true - Restart the gateway:
grip gateway - Check gateway logs for errors
Model not found or API error
Model not found or API error
Solution:
- Verify your API key is set correctly:
grip config show - Check that you’re using the correct model identifier for your provider
- For Claude models, use
claude_sdkengine (default) - For other providers, switch to
litellmengine:
Next Steps
Channels
Connect Grip AI to Telegram, Discord, or Slack
API Reference
Explore the full REST API
Configuration
Customize models, tools, and security settings
Security
Learn about Grip’s security architecture