Grok Build's /import-claude and /resume-claude: what they read, and what to check first

Grok Build's new /import-claude copies Claude Code's permissions, environment variables, MCP servers and hooks; /resume-claude picks up your Claude Code sessions. Where those live, what can hide in them (keys, code, secrets), and how to import cleanly.

· 7 min read

When Cursor became Grok Build on November 30, 2026, its terminal app gained two commands for people coming from Claude Code. By the announcement, /import-claude brings over "your Claude Code settings in one step, including permissions, environment variables, MCP servers, and hooks", and /resume-claude (with /resume-codex for Codex) picks up "your previous Claude Code or Codex sessions in Grok Build".

It's a useful feature, and switching tools shouldn't mean rewriting your setup. But those four kinds of settings and your session history are where keys and code tend to collect, and a migration is a good moment to look at them. Here's what each command reads, what to check, and how to do it cleanly.

On November 30, Grok Build's docs had no page for either slash command yet: the Terminal UI's What's new and its changelog, last updated November 19, don't mention them. The CLI reference has one line for the shell version, grok import [targets...], to "Import sessions from Claude Code", with no more detail. So the file locations below come from Claude Code's own docs, which say where those settings live. Check Grok Build's docs again before you run them.

#What does /import-claude read?

Claude Code keeps the four kinds of settings the announcement lists in a few files:

WhatWhere Claude Code keeps itWhat can be in it
Permissionspermissions in ~/.claude/settings.json, .claude/settings.json, .claude/settings.local.jsonCommands you allowed without asking, files you denied
Environment variablesenv in the same filesAnything you set for every session: proxies, flags, sometimes tokens
MCP servers.mcp.json (project), ~/.claude.json (your own servers, per project or for all)Commands, URLs, and env or headers values, which may hold keys
Hookshooks in the settings filesShell commands that run on events, with your paths and scripts

How those files stack, and what each key does, is in Claude Code settings.json explained.

Organizations can also deploy a managed managed-settings.json. By Grok Build's enterprise docs, its terminal app already reads part of that file (permission rules, MCP allowlists, some telemetry flags and marketplace limits), but not Claude Code's disableBypassPermissionsMode. Grok Build has its own setting for that.

#What does /resume-claude read?

Your Claude Code sessions. By Claude Code's data usage page, it stores session transcripts "locally in plaintext under ~/.claude/projects/", for 30 days by default (cleanupPeriodDays changes it), one folder per project, one .jsonl file per session.

A transcript holds the whole conversation: your prompts, Claude's answers, the files it read, the output of every command it ran. Continuing that session in another tool means sending that history to the model you pick there, through that tool's servers. For Grok Build's terminal app, that's cli-chat-proxy.grok.com, its inference proxy by the enterprise docs.

#Doesn't Grok Build already read some of this?

Yes, and it's worth knowing before you import anything. By Grok Build's docs, read on November 30:

  • The terminal app loads MCP servers from ~/.claude.json and project .mcp.json files, below its own config.toml (MCP servers). It reads CLAUDE.md, CLAUDE.local.md when Git doesn't ignore it, and .claude/rules/*.md (AGENTS.md).
  • The desktop app, formerly Cursor, runs Claude Code hooks from .claude/settings.local.json, .claude/settings.json and ~/.claude/settings.json when "Include Third-Party Plugins, Skills, and Other Configs" is on, which is the default (third-party hooks). It also loads skills from .claude/skills/ and reads CLAUDE.md.

So on a Mac where Claude Code is set up, part of your Claude Code setup is live in Grok Build before you type /import-claude. To see what the terminal app loaded and from where, run grok inspect. To stop it from reading Claude Code's MCP servers, set mcps = false under [compat.claude] in ~/.grok/config.toml.

#What should you look at before you run it?

#Keys in environment variables

The env block applies to every session, so it's where people put things they need often. Look for API keys, ANTHROPIC_BASE_URL pointing at a proxy, tokens for internal services. A key that was meant for Claude Code would now sit in another tool's config too.

#Keys in MCP configs

MCP entries often carry credentials: an env value with an API key, an Authorization header with a token. Claude Code supports ${VAR} references so the key stays in your shell, but many configs copied from a README have the key written in clear. Servers you added for yourself are in ~/.claude.json, which is easy to forget because you never edit it by hand.

#Permissions you granted for another agent

An allow rule such as Bash(npm run deploy:*) was a decision about Claude Code, with its model and its permission prompts. Carried over, it becomes a decision about a different agent. Read the allow list and keep only what you'd grant again.

#Hooks that run commands

Hooks are shell commands. Grok Build maps Claude Code's hook names to its own and supports exit code 2 to block an action, by its docs, so most hooks keep working. They will also run in a second tool, with your paths and scripts, so read them like any script you're about to run. Grok Build's docs note one difference: hooks written for Claude Code run with no loop limit on stop events, where Grok Build's own default is 5.

#Code and secrets in transcripts

This is the one to take most seriously. If Claude ever ran cat .env, printed a config, or read a file with a key in it, that text is in the transcript, in plain text. So is any key you pasted into a prompt. Resuming the session sends it along with everything else.

#How do you import cleanly?

  1. Set Grok Build's data settings first. In its terminal app without zero data retention, /privacy and /settings control whether code data is retained, and a first-run screen asks whether data can be used to improve the product, by the security FAQ. Choose before you send anything. Grok Build privacy covers which policy applies where.
  2. Look at what will be read. In your project and home folder:
# Permissions, env and hooks
cat ~/.claude/settings.json .claude/settings.json .claude/settings.local.json 2>/dev/null

# MCP servers: the project's, then yours
cat .mcp.json 2>/dev/null
jq '.mcpServers, (.projects[]?.mcpServers // empty)' ~/.claude.json

# Anything that looks like a key in those files
grep -nEi "(api[_-]?key|token|secret|password|bearer|sk-[a-z0-9])" \
  ~/.claude/settings.json .claude/settings*.json .mcp.json ~/.claude.json 2>/dev/null
  1. Move keys out of the files. Put them in your shell environment or keychain and reference them as ${NAME}. Grok Build expands ${VAR} in MCP configs too, so the same file works in both tools.
  2. Trim the allow list and read the hooks. Remove rules you no longer need, and hooks you don't recognize.
  3. Resume only what you need. Pick the one or two sessions that matter instead of bringing everything. Before resuming one, search its transcript for secrets:
ls ~/.claude/projects/
grep -lEi "(sk-[a-z0-9]{20,}|AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY)" ~/.claude/projects/*/*.jsonl

A shorter route: start a new Grok Build session and ask it to read your CLAUDE.md and the last commit. You lose the conversation, and that's often what you wanted to leave behind.

  1. Check the result. grok inspect lists the rules, MCP servers and hooks Grok Build loaded, with their origin.
  2. Rotate what leaked. If a key turns up in a transcript or a config you've already shared with another tool, rotate it. Deleting the line doesn't take it back from a copy.

None of this is specific to Grok Build. The same checks apply when you import settings into any agent, or share a transcript with anyone. Keeping secrets out of Claude Code covers the habits that keep keys out of transcripts in the first place.

#FAQ

Does /import-claude upload my settings?

The announcement says it imports them into Grok Build. Grok Build's docs had no page for the slash command on November 30, so they don't say whether it stores anything beyond your machine. MCP servers and permissions are used locally, while what you send in sessions goes to the model through Grok Build's servers.

Does /resume-claude send my old conversation to Grok Build?

Continuing a conversation means the model needs its history, so expect the transcript to go to the model you pick, through Grok Build's inference proxy.

Will Claude Code still work after I import?

Yes. Importing reads Claude Code's files, and nothing in the announcement says it changes them. Each tool keeps its own folder, ~/.claude and ~/.grok.

Can I stop Grok Build from reading Claude Code's config?

In the terminal app, mcps = false under [compat.claude] turns off Claude Code's MCP servers. In the desktop app, turn off "Include Third-Party Plugins, Skills, and Other Configs" under Settings, Agents, Third-Party Imports.

Where do Claude Code transcripts live?

In ~/.claude/projects/, in plain text, for 30 days by default. Set cleanupPeriodDays to keep them for less.

#More on the Grok Build change

#In Relais

Relais is a Mac app built on Claude Code, and it reads the same files Claude Code does: CLAUDE.md, .mcp.json, your settings. It doesn't import them anywhere and sends no telemetry: no analytics, no usage events. Keys an agent needs live in the Vault, handed to the agents you choose, not written into a config file. It doesn't run Grok Build. More on privacy in Relais, and how the two compare in Relais vs Grok Build.

Your AI team,
on your Claude plan.

$14.99 a month, everything included. On your Mac or on Linux, on your Claude Pro or Max plan. Cancel any time.