Terminal AgentCategory: CLI Agent

Claude Code CLI Integration Guide

Autonomous CLI coding agent operating directly in your local terminal. Route requests through Naranta gateway with environment variable overrides.

Connection Parameters

Environment Var
CLAUDE_CODE_API_URL
Endpoint URL
https://api.naranta.my.id/api/v1

Step-by-Step Configuration

1

Install Claude Code CLI

Ensure Claude Code is installed globally via npm (npm install -g @anthropic-ai/claude-code).

2

Export Environment Variables

Add the proxy endpoint and your Naranta API key to your shell session or profile (~/.zshrc or ~/.bashrc).

export CLAUDE_CODE_API_URL="https://api.naranta.my.id/api/v1"

3

Launch the Agent

Run "claude" in your project directory. The agent automatically executes through the Naranta gateway.

Configuration Snippet

SHELL
export CLAUDE_CODE_API_URL="https://api.naranta.my.id/api/v1"
export ANTHROPIC_API_KEY="YOUR_NARANTA_API_KEY"

Why Connect Claude Code CLI with Naranta AI?

Seamless git operations and terminal command execution
Autonomous codebase search and multi-file patching
Reliable streaming responses with failover protection

Frequently Asked Questions

Does Claude Code work on Windows, macOS, and Linux?

Yes, Claude Code runs in Node.js across all major desktop operating systems.