Skip to content
AI Tools

Claude Code Guide: Setup, Features & Error Fixes

How to use Claude Code, Anthropic's coding agent: permissions and sandboxing, usage limits and costs, hooks and subagents, and fixes for common errors.

71 articles

Sort articles to find what you need

Articles in Claude Code

Run Claude Code & Codex Safely at Work: Secrets, Rules, Admin, Audits

Run Claude Code & Codex Safely at Work: Secrets, Rules, Admin, Audits

When a company uses Claude Code or Codex, the rules written in AGENTS.md or CLAUDE.md are a “request” to the AI, not a mechanism that enforces them. This article splits the work into four layers (sharing rules, blocking with settings, admin distribution, and visibility) and lays out what to use in Claude Code and in Codex. It covers why Claude Code’s deny rules leave gaps unless combined with the sandbox (WSL2 is required on Windows), how to make deny in a Codex permission profile the default and the old setting that no longer works, where admin-distributed settings live (managed settings for Claude Code, requirements.toml for Codex) and their loopholes, the differences in activity records, use for training, and retention, five rollout steps, and common misconceptions.

I Asked Claude Code to Clean Up My PC, and It Deleted the User Folder — Limits of Deletion Safeguards and How to Prevent It (Real-World Example)

I Asked Claude Code to Clean Up My PC, and It Deleted the User Folder — Limits of Deletion Safeguards and How to Prevent It (Real-World Example)

When asked to clean up a PC in Auto mode, Claude Code created a cleanup script that deleted the entire Windows user folder, making sign-in impossible with the error “The User Profile Service service failed the sign-in.” This happened on the site operator’s secondary PC. Deletion checks, deny rules, and hooks inspect command text by default, so deletions inside script files are not checked. This article covers ways to reduce risk, from requesting a list and count before deleting to reviewing cloud sync, deciding what to delegate in Auto mode, and checking before resetting a PC.

What Is Claude Ship? How Claude Reviews and Fixes GitHub PRs and Determines Approvals, Plus Pricing (Code Review, PR Steward, Claude Approvals)

What Is Claude Ship? How Claude Reviews and Fixes GitHub PRs and Determines Approvals, Plus Pricing (Code Review, PR Steward, Claude Approvals)

Claude Ship comprises three agents that review team GitHub pull requests, make fixes, and determine which approvals are required. Generally available Code Review flags bugs line by line; public beta PR Steward fixes CI failures, conflicts, and review comments, then pushes changes without approving PRs; and public beta Claude Approvals checks repository policy files to determine required approvals. There is no flat fee: token use is paid from the organization's usage credits. This guide explains each agent's role, what is billable and how to estimate Code Review costs, how to start in observe mode, and how these agents differ from local /ship and /code-review.

Claude is requesting updated permissions: Is It Real? Approve or Wait?

Claude is requesting updated permissions: Is It Real? Approve or Wait?

The "[GitHub] Claude is requesting updated permissions" email that reaches the owners of a GitHub organization is a notification GitHub sends automatically when "Claude," Anthropic's GitHub App installed in the organization, adds to its list of permissions. The new permissions don't take effect until you approve them. If you don't approve, Claude keeps working with its current permissions, but features that use the new permissions may not work. You can't pick only some of the permissions: approving means accepting them all at once. This article covers how to confirm from the settings page that the email is real; how the features that share the one app (Claude Code GitHub Actions, Code Review, Claude Tag, plugin auto-sync, and more) map to permissions; what permissions such as Repository creation and Webhooks allow; a decision for each feature you use; how to narrow the scope with Only select repositories; and how to find the record of a permission update in the audit log (checked November 14, 2026).

When Are Subdirectory CLAUDE.md and AGENTS.md Files Loaded? Making AI Follow the Rules in a Monorepo

When Are Subdirectory CLAUDE.md and AGENTS.md Files Loaded? Making AI Follow the Rules in a Monorepo

If you put several sites in one repository and place a CLAUDE.md or AGENTS.md in each site's folder, those rules aren't guaranteed to be read before work begins. Claude Code loads a CLAUDE.md below the launch directory when Claude reads, writes or edits a file in that folder, while Codex reads only the AGENTS.md files from the project root down to the launch directory, once at the start of each run. This article compares, item by item, how both tools load these files and how to check whether they were loaded (/context shows only what was loaded at startup), then covers a check that stops the release if anything outside the assigned folder changes, and tool settings that block writes. It also shows how to tell similarly named repositories apart by remote URL and root commit, and commands that show only environment variable names (checked November 1, 2026).

How to Run Codex and Claude Code Subagents in Parallel: Prompts, Settings and Commands Compared

How to Run Codex and Claude Code Subagents in Parallel: Prompts, Settings and Commands Compared

"Codex won't go parallel unless you tell it to" is true, with conditions: the Codex app, CLI and IDE extension spawn subagents when you ask directly, or when AGENTS.md or a skill instructs delegation (Ultra in ChatGPT Work also delegates on its own judgment). Claude Code delegates on its own based on the request and each subagent's description. Using the official OpenAI and Anthropic documentation (checked October 26, 2026), this article compares what triggers parallel work, five things to put in your instructions, ready-to-use example prompts, [agents] in Codex's config.toml and the TOML files in .codex/agents/, Claude Code's .claude/agents/ and environment variables, commands such as /subagents, /tasks, /subtask, /batch and /worktree, tasks that suit parallel work and tasks that don't, and the impact on usage limits, and it also shares lessons this site learned from running subagents in parallel.

Your credit balance is too low to access the Anthropic API: What It Means and How to Fix It (Out of Credits, or an API Key Overriding Your Plan)

Your credit balance is too low to access the Anthropic API: What It Means and How to Fix It (Out of Credits, or an API Key Overriding Your Plan)

"Your credit balance is too low to access the Anthropic API" (shown as "Credit balance is too low" in Claude Code) means your Claude Console organization doesn't have enough prepaid credits. There are two causes: your balance really is too low, or you meant to use a plan such as Pro or Max but Claude Code is running on an API key from the ANTHROPIC_API_KEY environment variable and billing the API instead. You tell them apart with /status. Based on Anthropic's official documentation and Help Center (checked October 26, 2026), this article explains how the error appears, three questions to find the cause, how to buy credits under Billing in the Console and set up auto-reload, how to remove the API key on macOS, Linux and Windows and check it in VS Code, how this differs from the monthly API credits for Max, Ultra, and Team and from usage credits, and similar but different errors.

How to Use Claude on Vertex AI: Pricing, Claude Code Setup, Quotas, and Google-Managed vs. Anthropic-Managed

How to Use Claude on Vertex AI: Pricing, Claude Code Setup, Quotas, and Google-Managed vs. Anthropic-Managed

There are two ways to use Claude while staying on your Google Cloud bill: the Google-managed version, which Google runs as part of Agent Platform (formerly Vertex AI), and the Anthropic-managed version, which became generally available on October 22, 2026. Claude Code runs on the Google-managed version, configured with CLAUDE_CODE_USE_VERTEX and related settings (pinning the models is recommended if you roll it out to multiple people). If you need the Files API, Agent Skills, Managed Agents, fast mode and similar features, choose the Anthropic-managed version. On the Google-managed global endpoint, Opus 5.5, Sonnet 5.5 and Haiku 5.5 cost the same as the Claude API, while the us and eu multi-regions cost 1.1x. The Anthropic-managed version is metered in CCU, and no per-token price list appears in the official docs. Based on the official documentation (checked October 26, 2026), this article covers the differences and how to choose, pricing, regions, getting started, the SDKs, Claude Code setup, and how to handle quotas and 429 errors.

What PC Specs Do Claude Code and Codex Need? What Changes With Your PC and What Doesn't

What PC Specs Do Claude Code and Codex Need? What Changes With Your PC and What Doesn't

You don't need a high-end PC to run Claude Code or Codex. Both run their models on servers, so buying a new PC won't shorten the time the AI spends thinking and writing. Claude Code's CLI requires at least 4GB of RAM, an x64 or ARM64 CPU, and an internet connection, while Codex publishes no RAM or CPU figures. Your PC affects the time spent running commands locally, such as builds, tests, and searches. This article compares requirements, fast mode, per-OS sandbox conditions, and fixes for heavy workloads, and explains how to measure where your time goes and the three things to check before buying new hardware.

What Is Claude Code's /goal? How to Use It, Write Conditions, and Results From Real Tasks

What Is Claude Code's /goal? How to Use It, Write Conditions, and Results From Real Tasks

Claude Code's /goal lets you write down what counts as done. A separate small model checks the condition after each turn, and Claude keeps working until it is met. The article covers setup, checking, and clearing /goal from the official documentation, how the checker works and when it stops, how to write conditions, and how /goal differs from /loop and Codex's /goal. It also reports two runs aligning sentence-ending punctuation across this site's articles, including a 321-item run that finished in one turn, and notes that the checker cannot confirm finished quality that does not show up in the numbers.

How to Use DeepSeek, GLM, and Kimi with Claude Code: Setup Examples, Cost Comparison, and Search Pricing

How to Use DeepSeek, GLM, and Kimi with Claude Code: Setup Examples, Cost Comparison, and Search Pricing

Claude Code works with DeepSeek, GLM (Z.ai), and Kimi (Moonshot AI) models once you set ANTHROPIC_BASE_URL, each provider's API key, and the model name environment variables. The benefit is that you can swap only the model that answers while keeping the screen, tools, and settings, which helps when you want to cut costs or hit Claude's usage limits, though Anthropic does not support this use. The article draws on official documentation from each provider and Anthropic (checked October 19, 2026; pricing and search rechecked November 29, 2026) to cover pros and cons, settings.json examples, per-million-token prices for nine models, estimated per-session costs, four factors that change billing, DeepSeek's search and fetch pricing (from November 18, 2026, no per-call fee, only token costs), comparisons with fixed-price plans such as GLM Coding Plan, and code privacy concerns such as DeepSeek's data storage in China.