Authentication & Activation
Pencil requires both activation (to use Pencil itself) and Claude Code authentication (for AI features).
Pencil Activation
First-Time Activation
When you first launch Pencil or install the extension, you’ll be prompted to activate:
- Enter your email when prompted
- Check your email for the activation code
- Enter the code in Pencil to complete activation
Activation Issues
Activation email not received:
- Check your spam/junk folder
- Try using a different email address
- Wait a few minutes - emails may be delayed
“Invite for your email address was not found. Please join the waitlist.”
- This can occur during activation
- Try reinstalling the Cursor/VS Code extension
- Contact support if the issue persists
Repeatedly prompted for activation:
- This is a known issue in some versions
- Try restarting your IDE
- Reinstall the extension if it continues
Activation stuck during migration:
- Reinstall the extension
- Clear extension data and try again
Claude Code Authentication
Pencil’s AI features require Claude Code to be installed and authenticated.
Login via CLI
The recommended method is using the Claude Code CLI:
# Start Claude Code
claude
# Follow the browser authentication flowThis will:
- Open your browser
- Ask you to login with your Anthropic account
- Save your authentication credentials locally
Verification
To verify you’re logged in:
# Check Claude Code status
claude --versionOr start Pencil and look for:
- No “Claude Code not connected” warnings
- AI prompt panel works (Cmd/Ctrl + K)
Common Authentication Issues
”Claude Code isn’t connected / not logged in”
Solution:
- Open a terminal in your project directory
- Run
claudeto authenticate - Return to Pencil and try again
”Invalid API key” or “Please run /login”
Causes:
- Claude Code authentication is incomplete
- Multiple authentication methods conflict (console login + environment keys + custom provider config)
- Credentials expired or invalid
Solution:
- Run
claudeCLI and complete authentication - Check for conflicting auth configurations:
- Remove
ANTHROPIC_API_KEYenvironment variables if using CLI auth - Clear custom provider configs if not needed
- Remove
- Try a clean Claude Code login session
”Claude CLI works, but Pencil still says I’m not logged in”
Causes:
- Using third-party/custom providers with conflicting auth setup
- Extension not recognizing CLI auth
Solution:
- Ensure a clean Claude Code login session (no custom providers)
- Restart your IDE after authenticating
- Check that no conflicting environment variables are set
Authentication Methods
Recommended: Claude CLI
The simplest and most reliable method:
- Run
claudein your terminal - Login via browser
- All Pencil features work automatically
Alternative: API Keys
If you’re using custom authentication:
- Set
ANTHROPIC_API_KEYenvironment variable - Note: May conflict with CLI authentication
- Not recommended for typical usage
Working Flow for Authentication
A commonly successful workflow:
- Install Pencil (extension or desktop app)
- Complete Pencil activation (email code)
- Install Claude Code CLI
- Authenticate Claude Code (
claudecommand) - Create a
.penfile in your project - Start working - both Pencil and AI features should work
Permissions & Access
Folder Access
Issue: “Pencil / Claude can’t access other folders”
Cause:
- Folder permission restrictions
- OS security settings
Solution:
- Accept access prompts when they appear
- Update folder permissions in system settings
- Run your IDE/Pencil with appropriate permissions
Missing Permission Prompts
Issue: “Claude requested permission to write somewhere, but I never saw a prompt”
Workaround:
- Run the operation outside Pencil in a separate Claude Code session
- Check system notification settings
- Verify IDE permissions
Security & Privacy
MCP Server
- The Pencil MCP server runs locally on your machine
- No design data is sent to remote servers (except when using AI features, which send prompts to Claude)
- The repository is currently private (no public documentation yet)
Tool Definitions
You can inspect available MCP tools:
- In Cursor: Settings → Tools & MCP
- In VS Code: Check MCP configuration
- Tool definitions show what the AI can do with your designs
Next Steps
After authentication is complete:
- Return to the Getting Started guide
- Learn about Core Concepts
- Try AI Integration features
Still Having Issues?
If you’re still experiencing authentication problems:
- Check the Troubleshooting guide
- Review the FAQ
- Ensure you’re using the latest version of Pencil and Claude Code
- Try reinstalling both Pencil and Claude Code CLI