Skip to Content
ModelsClaude Code

Claude Code

Use Anthropic’s AI coding agent directly in Blueberry’s terminal.

What is Claude Code?

Claude Code is Anthropic’s agentic coding tool that lives in your terminal. It can understand your codebase, edit files, run commands, and help you build software faster. When you run Claude Code inside Blueberry, it gains full visibility into your workspace through MCP.

Installation

Install Claude Code globally via npm:

npm install -g @anthropic-ai/claude-code

Setup

1. Configure Your API Key

Claude Code requires an Anthropic API key. Set it as an environment variable:

export ANTHROPIC_API_KEY=your-api-key

You can add this to your shell profile (~/.zshrc or ~/.bashrc) so it persists across sessions.

2. Start Claude Code in Blueberry

  1. Open a terminal tab in Blueberry
  2. Navigate to your project directory
  3. Run claude to start an interactive session
claude

Claude Code will automatically detect your project structure and begin an interactive session.

Blueberry MCP Integration

When Claude Code is connected to Blueberry’s MCP server, it gains additional capabilities beyond a standard terminal session:

  • Workspace awareness - Claude can see your open files, terminal output, and preview browser
  • File navigation - Claude can open files and jump to specific lines in the editor
  • Terminal control - Claude can run commands in Blueberry’s terminal tabs
  • Screenshots - Claude can capture screenshots of your preview browser
  • Live preview - Claude can open URLs in the preview panel

To set up the MCP connection, see the Claude Setup guide.

Key Capabilities

  • Read and understand entire codebases
  • Create, edit, and refactor files
  • Run shell commands and interpret output
  • Search across files with semantic understanding
  • Debug errors by reading logs and stack traces
  • Work across multiple files in a single session

Learn More

Last updated on