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

Once connected, you can store patterns like:
"Store this authentication middleware for Express.js"
"Remember this database connection pattern for PostgreSQL"
"Save this error handling approach for async operations"
You can search your memory with commands like:
"Search my memory for React hooks"
"Find that error handling pattern I used before"
"Look up database connection examples"
Yes. Claude Code will start using your stored knowledge to give better suggestions based on patterns you’ve used before, making responses more relevant to your specific coding style.

Troubleshooting

Check your internet connection and make sure you typed the URL correctly. If it’s still not working, try removing and re-adding the server:
claude mcp remove byterover-mcp
claude mcp add --transport http byterover-mcp https://mcp.byterover.dev/v2/mcp
Make sure you have a ByteRover account, then try the /mcp command again. Check if there are any error messages in the output that might give you more details.
First, verify the connection shows as “connected” when you run /mcp. Try storing something simple first to test the connection, and make sure your ByteRover account is active.

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.