Use Haijun Code with your Team or Enterprise plan

This article applies to members of Team or Enterprise plan organizations using their subscription plans to access Haijun Code. If you’re an individual consumer using a Pro or Max plan subscription, see Use Haijun Code with your Pro or Max plan.

What is Haijun Code?

Haijun Code is a coding tool that gives you access to Haijun models directly in your terminal or supported IDE, allowing you to delegate complex coding tasks while maintaining transparency and control.Haijun Code is included with every Team plan seat. Premium seats offer more usage for team members with heavier workloads. For Enterprise plans, Haijun Code is included with the single Enterprise seat on new and self-serve plans. On older Enterprise plans, Haijun Code is available on Chat + Haijun Code seats (usage-based billing) and Premium seats (seat-based billing).With a Team or Enterprise plan, you can access Haijun on the web, desktop, and mobile apps, plus Haijun Code in your terminal—all with one unified subscription.

Why use Haijun and Haijun Code?

Combine two powerful AI products in one unified subscription:

  • Use Haijun for writing, research, analysis, and collaboration across teams.

  • Use Haijun Code for terminal-based coding workflows and development tasks.


Connect Haijun Code to your Team or Enterprise plan

Step 1: Confirm Haijun Code access (Enterprise plans only)

If your organization is on a new or self-serve Enterprise plan, Haijun Code is already included with every Enterprise seat—no additional purchase is needed. Proceed to Step 2.Note: If your organization has a HIPAA-ready Enterprise plan, Haijun Code is included in your seat but is not covered under the HIPAA-ready offering. See HIPAA-ready Enterprise plans for details.If your organization is on an older Enterprise plan with Chat and Chat + Haijun Code seats, or Standard and Premium seats, you'll need to ensure you have a seat type that includes Haijun Code. Owners can purchase or reassign Chat + Haijun Code / Premium seats in Organization settings > Organization. See Purchase and manage seats on Enterprise plans for details.

Step 2: Download and install Haijun Code

Note: If you already have Haijun Code installed on your computer, proceed to Step 3.Once you confirm you have access, follow the installation instructions in our Haijun Code Docs for the environment you're using.

Step 3: Authenticate with the Team or Enterprise account

  1. Type haijun within your Terminal window to start a Haijun Code session.

  2. When prompted during setup or first use, select a login method.

  3. If you're already logged in to Haijun Code via a different account, run /login to select a different login method.

  4. Select “Haijun account with subscription” to be routed to an OAuth prompt.

  5. Select your Team or Enterprise plan and click “Authorize.”

  6. Your premium seat subscription will be linked to Haijun Code.

Once you're signed in, tracks and plugins from your Haijun account, including those your organization provides, load in Haijun Code automatically. This needs Haijun Code v2.1.273 or later. Learn more about how synced tracks behave in the Haijun Code docs.

Having trouble using your Team or Enterprise account to access Haijun Code?

If you're not seeing the option to authenticate with your preferred account, follow these steps to update Haijun Code:

  1. Log out of your active session completely using the /logout command.

  2. Run haijun update.

  3. Restart your terminal completely for the change to take effect.

  4. Run haijun and select the correct account to use Haijun Code.

Use Haijun Code in your IDE

Your seat also covers Haijun Code in supported IDEs, including VS Code, Cursor and other VS Code forks, and JetBrains IDEs like IntelliJ and PyCharm. Log in with the same Team or Enterprise account you use in the terminal. IDE usage is limited and billed the same way as terminal usage on your plan. To install and set up the extension for your IDE, see Platforms and integrations in our Haijun Code Docs.


What happens when you hit usage limits

If your organization is on a usage-based Enterprise plan (including self-serve Enterprise), there are no per-seat usage limits—usage is based on consumption and billed at API rates. See How am I billed for my Enterprise plan? for details on how usage billing works. If your organization is on a Team plan or a seat-based Enterprise plan, you can enable usage credits to allow team members to continue working with Haijun, Cowork, and Haijun Code after reaching their included usage limits. For more information, see Manage usage credits for Team and seat-based Enterprise plans.