PyCharm + Claude Code + Z.AI
Recommended Setup Overview
Section titled “Recommended Setup Overview”For this hackathon, the recommended AI development setup is:
- JetBrains IDE (e.g. PyCharm) as your code editor
- Claude Code running in the integrated terminal, powered by the Z.AI API
This gives you a powerful agentic AI assistant that can read, write, and reason about your entire project — directly from the terminal inside your IDE, without needing an Anthropic account or API key.
Why this setup? Claude Code via Z.AI is free for students at this hackathon, deeply capable, and works entirely within your existing JetBrains workflow.
Step 0: Connect to the NYU Network
Section titled “Step 0: Connect to the NYU Network”The license server (jetbrains.ritsdev.top) is only accessible from within the NYU network. Before activating PyCharm, make sure you are connected to one of the following:
- nyu Wi-Fi on campus
- NYU VPN if you are off-campus — download it from nyu.edu/life/information-technology/getting-started/network-and-connectivity/vpn.html
You only need to be on the NYU network for the activation step. Once activated, PyCharm works normally on any internet connection.
Step 1: Download and Activate PyCharm
Section titled “Step 1: Download and Activate PyCharm”- Download PyCharm from jetbrains.com/pycharm and install it.
- Open PyCharm. On the welcome screen, click Unlock Pro Features (or go to Help > Register if already inside the IDE).
- Select Activate License.
- Choose License Server.
- Enter the following URL:
https://jetbrains.ritsdev.top
- Click Activate — your license will be activated immediately.
Step 2: Install Claude Code
Section titled “Step 2: Install Claude Code”Claude Code is a terminal-based AI agent. Install it globally with npm.
Prerequisites
Section titled “Prerequisites”- Node.js 18 or newer
- macOS: Use
nvmto install Node.js. Installing directly from the package may cause permission issues. - Windows: Install Git for Windows in addition to Node.js.
- macOS: Use
Install
Section titled “Install”npm install -g @anthropic-ai/claude-codeStep 3: Configure Claude Code to Use Z.AI
Section titled “Step 3: Configure Claude Code to Use Z.AI”Claude Code needs to be pointed at the Z.AI API instead of Anthropic’s servers. This is done by editing a settings file.
3.1 Locate or Create the Settings File
Section titled “3.1 Locate or Create the Settings File”- Mac/Linux:
~/.claude/settings.json - Windows:
%USERPROFILE%\.claude\settings.json
If the file doesn’t exist, create it.
3.2 Paste the Configuration
Section titled “3.2 Paste the Configuration”Open the file and paste in the following structure exactly. Replace the . in ANTHROPIC_AUTH_TOKEN with your Z.AI API key.
{ "model": "glm-5.1", "availableModels": ["glm-5.1", "glm-5v-turbo"], "env": { "ANTHROPIC_AUTH_TOKEN": "your-zai-api-key-here", "ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic", "API_TIMEOUT_MS": "3000000", "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": 1 }}Where do I get my Z.AI API key? You’ll receive it from the hackathon organizers, or you can sign up at bigmodel.cn.
3.3 Restart Claude Code
Section titled “3.3 Restart Claude Code”Close any running Claude Code session and reopen your terminal. Run claude again to pick up the new configuration.
Step 4: Set Up the Vision Agent (Optional but Recommended)
Section titled “Step 4: Set Up the Vision Agent (Optional but Recommended)”Z.AI provides a multimodal model (glm-5v-turbo) that can analyze screenshots and UI images. You can set this up as a dedicated Claude Code sub-agent.
4.1 Create the Agent Directory
Section titled “4.1 Create the Agent Directory”In your PyCharm terminal, run:
mkdir -p .claude/agents4.2 Create the Vision Agent File
Section titled “4.2 Create the Vision Agent File”Open the nano editor:
nano .claude/agents/vision.agent.md4.3 Paste the Agent Configuration
Section titled “4.3 Paste the Agent Configuration”Copy and paste the following:
---name: visiondescription: Expert in analyzing screenshots and UI mockups.model: glm-5v-turbo---
You are the project's visual specialist. When the user provides an image, analyze it for UI/UX issues, layout bugs, or design-to-code translations. Provide clear, technical instructions back to the main agent so it can implement the code changes.4.4 Save and Exit Nano
Section titled “4.4 Save and Exit Nano”- Press
Ctrl + Oto write the file. - Press
Enterto confirm the filename. - Press
Ctrl + Xto exit.
4.5 Verify the Agent
Section titled “4.5 Verify the Agent”ls .claude/agentsYou should see vision.agent.md listed.
4.6 Test the Vision Agent
Section titled “4.6 Test the Vision Agent”Start Claude Code (claude) and type:
@vision are you there?If it responds, you’re set. You can now drag images into the terminal and mention @vision to trigger the glm-5v-turbo model for that request.
Step 5: Run Claude Code in PyCharm
Section titled “Step 5: Run Claude Code in PyCharm”- Open your project in PyCharm.
- Open the integrated terminal: View > Tool Windows > Terminal (or
Alt+F12/Option+F12on macOS). - Navigate to your project directory if needed:
Terminal window cd your-project-directory - Start Claude Code:
Terminal window claude - If prompted with “Do you want to use this API key?”, select Yes.
You now have a fully agentic AI assistant running inside your IDE terminal.
Troubleshooting
Section titled “Troubleshooting”Claude Code not picking up the Z.AI config
Section titled “Claude Code not picking up the Z.AI config”Make sure you closed the previous session before editing settings.json. Run claude in a fresh terminal after saving.
claude command not found
Section titled “claude command not found”The npm global bin directory may not be in your PATH. Try:
npx @anthropic-ai/claude-codeOr check your npm global prefix:
npm config get prefixThen add <prefix>/bin to your PATH.
Permission errors on macOS when installing
Section titled “Permission errors on macOS when installing”Use nvm to manage your Node.js installation instead of the official macOS installer:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bashnvm install 20nvm use 20npm install -g @anthropic-ai/claude-codeAdditional Resources
Section titled “Additional Resources”- Claude Code Documentation — Official Claude Code docs
- Z.AI / BigModel Platform — Z.AI API dashboard
- PyCharm Download — Download PyCharm
- JetBrains Toolbox App — Manage all JetBrains IDEs
Need help at the hackathon? Find a mentor or organizer — we’re here to help you get set up!