Privacy choices

Optional Google Analytics and advertising are off until you choose. Read our privacy details.

Claude Code in India: My Daily Setup

Install in five minutes, then the part that trips people up: telling your included Claude subscription, separately metered API usage and your own bank's exchange rate apart. Plus whether your laptop can stay off, cache design and the MCP toolbox I lean on.

AutoKaam card for Claude Code in India: my daily setup
FIELD GUIDE · CLAUDE · APR 14, 2026

Claude Code is Anthropic's command-line coding agent, the official way to drive Claude models from a terminal. It is my daily driver, running across a dozen-plus projects on one Linux box in India: a jobs site, a finance newsroom, govt-form automation, trading bots, and the content pipeline behind this site.

Most setup guides stop at install and pricing. That part takes five minutes. The part that decides whether Claude Code is a toy or a force multiplier is what sits underneath: knowing which bill a session is landing on, what keeps running when your laptop is off, how to design for the prompt cache, and the MCP tools that replace whole categories of one-off scripts.

Why terminal, not IDE

Cursor is a VS Code fork. Claude Code is terminal-native, file-aware and git-aware. If you work over SSH, live in tmux or neovim, run a commit-heavy workflow, or navigate large codebases, the terminal agent fits the hand better. I keep both: Claude Code for planning and large multi-file work, Cursor for quick autocomplete.

Install in five minutes

The native installer is the recommended path. Current requirements, supported systems and login options live on the official Claude Code setup page, so check it before you run anything:

curl -fsSL https://claude.ai/install.sh | bash

claude --version

curl ... | bash runs a remote script as you. If that makes you uneasy, download the script first and read it.

npm works too, without sudo. The required Node.js version changes between releases, so take it from the setup page rather than from a tutorial.

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

Do not run that with sudo: Anthropic's own docs warn it can cause permission issues. Full walkthrough: Install Claude Code on Linux.

Subscription, API and your bank: three different bills

When you are staring at a terminal, the question is not "what does Claude Code cost" but "which of three separate things is paying for this session". Keep them apart.

Included subscription Direct API (metered) Your bank's exchange rate
What it is A fixed plan fee for a signed-in Pro, Max or Ultra account, with usage limits Per-token billing on a Console API account The USD-to-INR conversion your card or bank applies
What you see A usage allowance, not a per-job price A dollar cost for every token sent and received Whatever lands on your statement, with your bank's rate, fees and tax
Reference claude.com/pricing and the Claude playbook API pricing Your own dated card statement

Anthropic publishes API prices in US dollars, and the rupee figure you actually pay depends on your bank, so I no longer quote a fixed rupee rate here. Take the dollar price, then multiply by the rate on your own statement.

Plan names, prices and limits change often. The Claude playbook is the maintained page, and Claude Code pricing: Pro vs Max vs API has the plan-by-plan and API breakdown.

Subscription login

claude
# first run prompts login, browser opens, auth flow completes

Per Anthropic's authentication docs, an eligible signed-in Pro, Max or Ultra account uses your subscription. You are not billed per token for that session; you spend from the plan's allowance.

One thing the subscription login path does not get: beta headers. claude --help lists the --betas flag as "API key users only", so if a tutorial tells you to enable a beta while signed in with a plan, it will not apply.

API key

export ANTHROPIC_API_KEY="sk-ant-..."
# placeholder only. Set it only in the shell or script that should bill the API

The same authentication docs say a separately approved ANTHROPIC_API_KEY is billed to your Console API account instead of your subscription. That rail is metered per token, separate from your plan allowance, and the plan fee neither pays for it nor shrinks it.

Keep the key out of .bashrc and out of git, and set it only where you mean to bill the API. To see whether your current shell has one set without printing it:

echo "${ANTHROPIC_API_KEY:+ANTHROPIC_API_KEY is set}"

The smart move is not "subscription or API", it is knowing which work belongs on which rail.

A worked cost example

These prices are hypothetical, chosen for easy arithmetic. Look up the real per-million-token price of your model on the API pricing page.

Assume $3 per million input tokens, $15 per million output tokens.
One job, 100,000 in + 10,000 out: $0.30 + $0.15 = $0.45
100 such jobs on the direct API: 100 x $0.45 = $45
If you also pay for a plan, its fixed fee is added on top, independently of that $45.

Then convert the USD total at your bank's rate. The example ignores cache discounts, retries and tax, so it is a sizing tool, not an invoice.

Can I leave my laptop off?

Yes, when another machine runs the work. For Claude Code’s own scheduling features, check which environment owns the schedule. Anthropic's scheduled tasks docs draw a clear line between two things:

What you set up Where it runs Laptop off?
A scheduled prompt inside a session Within a Claude Code session, on your machine No. The session must stay open on a machine that is awake and online.
A cloud routine you explicitly create Hosted in the cloud, not in your terminal Yes. It does not depend on your laptop.
Your own cron or timer calling claude -p Your machine No. A sleeping or powered-off laptop runs nothing.

A few practical notes for the machine-bound options:

  • Missed runs are usually gone. Cron does not normally replay a run it missed while the laptop slept. If you need catch-up, look at your distro's docs for anacron or a persistent systemd timer.
  • Cron does not load ~/.bashrc. Set any environment variable a scheduled job needs in the crontab line or a wrapper script. That includes ANTHROPIC_API_KEY, which decides whether the run bills your subscription or the API, so choose that on purpose.
  • Nothing has to be exposed. Claude Code runs on your machine and connects outbound to Anthropic. No inbound port needs to be opened for any step in this guide.

Your first project

Point it at a real repo and give it a concrete task.

cd ~/my-project && claude
Read src/app/page.tsx and refactor it into smaller components.
Create src/components/ with logical splits.
Update imports. Run tsc --noEmit to verify no errors.

It reads the file, proposes a plan, creates the components, then runs the type check. The default permission mode has changed between releases, so check which mode your session is in. When the work touches something live, press Shift+Tab to cycle to a stricter mode that asks before it edits.

Many small headless runs add up

Every fresh claude -p starts from scratch: a new connection and full session priming (system prompt, CLAUDE.md, skills, MCP handshake). One-shot runs pay that setup cost every time, and a one-turn session never gets to reuse what it cached.

On my own account, a day with lots of one-shot runs drained my plan allowance faster than a quieter day that spent more money in tokens. I would treat that as a reason to measure rather than a rule: how plan limits are counted is set by Anthropic and changes, so check the Claude playbook and your own usage on your current plan.

Before wiring claude -p per item into a pipeline, count the calls per day. If the number is high, redesign it as one long-running session that reuses its context, or move it onto the direct-API rail, where every run has a visible per-token price and does not draw from your plan allowance. A loop firing a fresh agent per draft is the classic way to burn through your own afternoon.

Design for the cache first

Treat cache hit rate like uptime. Anthropic bills cache reads at a fraction of the normal input price (see the pricing page), so on the API rail a good hit rate is a direct lever on your token bill. Do not assume it also buys you subscription headroom; measure that separately. What actually moves the number:

  • Keep the system prompt slim. Every byte of your global CLAUDE.md is re-sent as a cache read on every message. A bloated context file can quietly dominate your month's token volume even at the discounted rate. Push detail into on-demand files.
  • Put dynamic content at the end. Timestamps, request IDs, per-run context go after the stable prefix. Caching works on the prefix, so volatile data up front changes it every request and you never get a hit.
  • Lock tool order. Tool definitions cache as one prefix. Reorder them between subagent calls and you invalidate the whole tool cache.
  • Avoid swapping models mid-session. Caches are per model, so switching Opus to a smaller model partway through can cost more than letting Opus finish. Route by session boundary.
  • Warm it, then check it. When fanning out parallel subagents, let one run first so the shared prefix is cached before the rest start. Confirm with cache_read_input_tokens in the usage data of a response: after warm-up it should be most of the input.

For parallel subagents and a way to measure the gain on your own runs, see Claude Code subagents in practice.

/fast mode

When I need quicker turnarounds without dropping to a weaker model, /fast toggles a faster output path. Same model, lower latency, at a premium price. The multiplier and the models it covers are on the pricing page. It is the right lever when wall-clock time is the bottleneck, not when you need a cheaper model.

The MCP toolbox I actually use

Out of the box Claude Code is useful. The next half hour of setup is where it becomes the daily driver. MCP servers add new tools to the agent. Add them with claude mcp add and run /mcp to confirm they connected. Mind the scope: Anthropic's MCP docs list local (the default, this project only, stored in ~/.claude.json), project (.mcp.json in the project root, shared through git) and user (every project, also ~/.claude.json). I learned that the hard way: servers I had listed in ~/.claude/.mcp.json were loading in zero sessions until I re-added them with --scope user. The three I lean on as an Indian operator:

  • adobe-pdf: Adobe PDF Services over REST for govt forms, invoices, OCR, and table extraction with proper layout. It replaced pdftk and PyPDF in my workflow.
  • gemma-vision: a local vision model on my own GPU for screenshot debugging and document data extraction. Running locally, it does the image work without spending Anthropic context tokens.
  • claude-context: semantic search across my indexed repos. I reach for it before grep -r on any cross-repo refactor.

A third-party MCP server runs with your permissions, so read its source and what access it asks for before installing it.

The pattern that matters: reach for an MCP tool before writing a one-off script or installing a library. Most glue work you would hand-roll is already a tool call. When no existing server covers your stack, write a custom MCP server in Python and the agent gains a typed tool for exactly your job. When a repeatable workflow needs instructions rather than a server, a skill is the lighter tool: see the Claude Code skills guide.

Hooks and custom slash commands

Hooks are shell commands the harness runs on lifecycle events. They live in ~/.claude/settings.json under the hooks key. I use a SessionStart hook that loads a per-project RESUME.md if one exists in the working directory, so the agent wakes up knowing where I left off. Keep secrets out of that file, since it sits in the repo.

{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          { "type": "command", "command": "test -f ./RESUME.md && cat ./RESUME.md || true" }
        ]
      }
    ]
  }
}

The output is injected into context, and because the hook lives in the global settings file it survives across every session and project. The hook schema evolves, so match it against the current docs.

Custom slash commands are markdown files in ~/.claude/commands/<name>.md. Each becomes a /<name> command, and the body of the file is the prompt that runs.

mkdir -p ~/.claude/commands
cat > ~/.claude/commands/lint.md <<'EOF'
Run `npm run lint` and `npm run typecheck`. Fix any errors you can without
changing public APIs. Report what you fixed and what needs a human.
EOF

The CLAUDE.md file in a project root is read automatically every session. Keep it tight, since per the cache rule above it costs you on every message.

# Project Context

## Stack
- Next.js + TypeScript + Tailwind
- PocketBase backend
- Deployed on Cloudflare Pages

## Conventions
- One component per file in src/components/
- No Docker, direct installs only

Indian network note

On some ISPs the route to Anthropic is slow. Cloudflare WARP (free) often helps: warp-cli register then warp-cli connect. WARP sends your traffic through Cloudflare, so read its terms first, and match the subcommands against Cloudflare's docs if they have changed.

When things break

Auth token expired mid-session. You see "Authentication failed" partway through. Type /login in the session to re-authenticate, or run claude auth logout and start again. Save key state to a file first in case the session does not survive.

MCP server failed to start. A bad entry fails quietly. Run claude mcp list, or claude mcp get <name> for one server, to see what actually connected. Most common cause: the server was added at a scope that does not load in this project. Second: the server's own dependency missing.

Context approaching the limit. Warnings arrive near the top of the window. Type /compact to summarise prior turns and reset. Save anything you do not want compressed to a file first, since compaction is lossy by design.

Tool denied without a clear reason. Check which permission mode you are in (Shift+Tab cycles through them), and whether a deny rule in your ~/.claude/settings.json matches the command. If a command is legitimate, allowlist it explicitly. Never reach for --dangerously-skip-permissions as a shortcut.

Claude Code vs Codex CLI vs Aider

These tools change quickly, so read this as a snapshot of how I use them rather than a feature table.

Codex CLI is OpenAI's terminal agent. More autonomous loop, fewer permission prompts, longer multi-step runs before checking in. Trade-off: less surgical control, and it can race into edits you did not intend.

Aider is the open-source veteran. Bring your own API key, works with OpenAI-compatible endpoints, light footprint. Its permission model is git-based: every edit is a commit, so revert is one command.

Claude Code is my default daily driver. The interactive permission model is the feature, not the friction, and MCP support is native. For a solo operator running many small projects from India, that combination wins.

Quick takeaways

  • Keep three things apart: the included subscription (fixed fee, usage allowance), the direct API (metered per token in USD), and your bank's rate when converting to rupees. Prices live on claude.com/pricing, the API pricing page and the Claude playbook.
  • Cost sizing: tokens in x input price + tokens out x output price, per job, times jobs. At a hypothetical $3/$15 per million, 100k in and 10k out is $0.45 a job and $45 for 100. A plan fee is separate and independent.
  • Laptop off? A cloud routine you explicitly create can keep running on its host. A session-scoped prompt, or your own cron job, needs the machine awake.
  • Many one-shot claude -p runs repeat session setup each time. Count them per day, then prefer one long session or the API rail for high-frequency jobs.
  • Design for prompt caching first: slim system prompt, dynamic content last, locked tool order, no mid-session model swaps. /fast gives faster output at a premium when wall-clock time is the bottleneck.

Also see the Cursor vs Copilot comparison for a decision framework.

Filed under