Skip to main content

MorphClient

Unified client for all Morph tools.

Namespaces

Standalone Clients (Advanced)

Need custom configuration per tool? Use individual clients:
Use when: You need tool-specific configuration that differs from defaults (custom URLs, different timeouts, etc.).

Fast Apply

morph.fastApply.execute(input, overrides?)

Edit files with AI-powered merge.

Framework Adapters

Types


WarpGrep

morph.warpGrep.execute(input)

Agentic code search. Runs grep and file reads in a separate context window.

Framework Adapters

Types

Requires ripgrep on the machine running the search. Full options — streaming, GitHub search, sandbox execution — are on the WarpGrep pages.

Git Operations

morph.git.*

Access the MorphGit client via morph.git.

Repository Management

Basic Operations

Status & History

Branching


Environment Variables

Get your API key: morphllm.com/dashboard/api-keys

Import Patterns

Framework Adapters

WarpGrep tools come off the client: morph.anthropic.createWarpGrepTool(), morph.openai.createWarpGrepTool(), morph.vercel.createWarpGrepTool().

Error Handling

All tools return results with success: boolean and optional error: string.
Automatic retries: SDK automatically retries failed requests with exponential backoff for transient errors (rate limits, timeouts).

Next Steps

Examples

See real-world usage patterns

Dashboard

Monitor usage and manage API keys