Welcome to the Claude Code integration guide. This guide will help you connect ByteRover with Claude Code CLI, enabling persistent memory and enhanced contextual understanding for your command-line AI interactions.

What You’ll Need

  • Claude Code installed and working
  • A ByteRover account

Getting Started

1. Start the Connection

Go to your ByteRover dashboard and:
  1. Find the “Connect your agent” section
  2. Click on Claude Code from the list
  3. Hit the “Connect with Claude Code” button

2. Connect ByteRover to Claude Code

Step 1: Open your terminal and execute the following command:
claude mcp add --transport http byterover-mcp https://mcp.byterover.dev/v2/mcp
Step 2: Within Claude Code, use the /mcp command to manage MCP servers: You should see byterover-mcp listed with with state is disconnected - Enter to login. Step 3: After login, the state of byterover-mcp will change to connected.

Test It

Try storing something:
Store this React hook for managing localStorage:

const useLocalStorage = (key, initialValue) => {
  const [storedValue, setStoredValue] = useState(() => {
    try {
      const item = window.localStorage.getItem(key);
      return item ? JSON.parse(item) : initialValue;
    } catch (error) {
      return initialValue;
    }
  });
  
  const setValue = (value) => {
    try {
      setStoredValue(value);
      window.localStorage.setItem(key, JSON.stringify(value));
    } catch (error) {
      console.error(error);
    }
  };
  
  return [storedValue, setValue];
};
If it works, Claude will confirm the pattern was saved to ByteRover.

What You Can Do

Troubleshooting

Getting the Most Out of It

Be specific about what you store:
// Good
"Store this pagination pattern for REST APIs"

// Not as useful
"Remember this function"
Use it regularly: The more you store, the more useful your memory becomes. When you solve interesting problems or create reusable code, tell Claude to store it. Search when you need help: Before writing code from scratch, try searching your memory first. You might have solved a similar problem before.
Having issues? The Discord community has lots of Claude Code users who can help troubleshoot.