Welcome! This guide will help you get up and running in under 10 minutes.
- Install the extension (2 minutes)
- Start WebSocket server (2 minutes)
- Send your first command (3 minutes)
- Explore platform automation (3 minutes)
Total time: ~10 minutes
Before starting, ensure you have:
- ✅ Chrome, Edge, or Brave browser (latest version)
- ✅ Node.js installed (v14+) - Download here
- ✅ Basic command line knowledge
- ✅ Text editor (VS Code, Sublime, etc.)
git clone https://github.com/yourusername/claudekit-browser-extension.git
cd claudekit-browser-extensionOr download ZIP and extract.
- Open
chrome://extensions/ - Enable Developer mode (top-right toggle)
- Click Load unpacked
- Select the
claudekit-browser-extensionfolder - Done! Extension icon appears in toolbar
Verify: Click the 10X.in icon. Popup should open showing "Connecting..."
cd tests
npm installnode websocket-test-server.jsExpected output:
🚀 WebSocket server running on ws://localhost:3000/ws
Waiting for extension to connect...
Verify: Extension popup now shows "Connected ✓" (green badge)
Create test-first-command.js:
const WebSocket = require('ws');
const ws = new WebSocket('ws://localhost:3000/ws');
ws.on('open', () => {
console.log('✅ Connected to extension\n');
// Navigate to Example.com
console.log('📍 Sending NAVIGATE command...');
ws.send(JSON.stringify({
type: 'browser-command',
payload: {
id: 'cmd-1',
action: 'NAVIGATE',
url: 'https://example.com'
}
}));
});
ws.on('message', (data) => {
const message = JSON.parse(data);
console.log('📨 Received:', message);
if (message.type === 'command-result') {
console.log('\n✅ Command executed successfully!');
ws.close();
}
});
ws.on('close', () => {
console.log('👋 Disconnected');
process.exit(0);
});node test-first-command.jsWhat happens:
- Script connects to WebSocket server
- Sends navigation command
- Extension navigates active browser tab to example.com
- Extension sends result back
- Script closes connection
Expected output:
✅ Connected to extension
📍 Sending NAVIGATE command...
📨 Received: { type: 'extension-connected', payload: {...} }
📨 Received: { type: 'command-result', commandId: 'cmd-1', success: true }
✅ Command executed successfully!
👋 Disconnected
Congratulations! You've sent your first browser automation command! 🎉
Create test-linkedin.js:
const WebSocket = require('ws');
const ws = new WebSocket('ws://localhost:3000/ws');
ws.on('open', () => {
console.log('✅ Connected\n');
// First, navigate to a LinkedIn profile
console.log('📍 Opening LinkedIn profile...');
ws.send(JSON.stringify({
type: 'linkedin-action',
payload: {
type: 'view_profile',
profileUrl: 'https://linkedin.com/in/williamhgates' // Bill Gates
}
}));
});
ws.on('message', (data) => {
const message = JSON.parse(data);
if (message.type === 'action-result') {
console.log('\n✅ Profile viewed!');
console.log('Profile data:', message.result.profileData);
console.log('Rate limit:', message.result.rateLimit);
ws.close();
}
});Run:
node test-linkedin.jsOutput:
✅ Connected
📍 Opening LinkedIn profile...
✅ Profile viewed!
Profile data: {
name: 'Bill Gates',
headline: 'Co-chair, Bill & Melinda Gates Foundation',
location: 'Seattle, Washington',
profileUrl: 'https://linkedin.com/in/williamhgates'
}
Rate limit: { allowed: true, remaining: 99, limit: 100 }
Create test-google.js:
const WebSocket = require('ws');
const ws = new WebSocket('ws://localhost:3000/ws');
ws.on('open', () => {
console.log('✅ Connected\n');
console.log('🔍 Performing Google search...');
ws.send(JSON.stringify({
type: 'google-action',
payload: {
type: 'search',
query: '10X AI assistant'
}
}));
});
ws.on('message', (data) => {
const message = JSON.parse(data);
if (message.type === 'action-result') {
console.log('\n✅ Search completed!');
console.log('Results:', message.result);
ws.close();
}
});Automate ANY website:
const WebSocket = require('ws');
const ws = new WebSocket('ws://localhost:3000/ws');
ws.on('open', () => {
// 1. Navigate
ws.send(JSON.stringify({
type: 'browser-command',
payload: {
id: 'step-1',
action: 'NAVIGATE',
url: 'https://example.com/form'
}
}));
// 2. Wait 2 seconds, then fill form
setTimeout(() => {
ws.send(JSON.stringify({
type: 'browser-command',
payload: {
id: 'step-2',
action: 'TYPE',
selector: 'input[name="email"]',
text: 'user@example.com',
options: { clear: true, humanize: true }
}
}));
}, 2000);
// 3. Click submit
setTimeout(() => {
ws.send(JSON.stringify({
type: 'browser-command',
payload: {
id: 'step-3',
action: 'CLICK',
selector: 'button[type="submit"]'
}
}));
}, 4000);
});| Platform | Actions Available |
|---|---|
| View profiles, send connections, message, like posts, comment | |
| Follow users, like posts, comment, send DMs | |
| Post tweets, follow users, like, retweet, reply | |
| Search, extract results, navigate |
- NAVIGATE - Go to any URL
- CLICK - Click any element
- TYPE - Fill inputs with human-like timing
- SCRAPE - Extract data from page
- EXECUTE_SCRIPT - Run custom JavaScript
Now that you're set up, explore more:
Read README.md for complete API reference:
- All WebSocket message formats
- Platform-specific commands
- Rate limits and best practices
cd tests
npm testExample: LinkedIn Outreach Bot
const profiles = [
'linkedin.com/in/user1',
'linkedin.com/in/user2',
'linkedin.com/in/user3'
];
for (const profile of profiles) {
// View profile
await sendCommand({
type: 'linkedin-action',
payload: { type: 'view_profile', profileUrl: profile }
});
await sleep(5000); // Wait 5 seconds
// Send connection
await sendCommand({
type: 'linkedin-action',
payload: {
type: 'send_connection',
profileUrl: profile,
note: 'Hi! I'd love to connect.'
}
});
await sleep(10000); // Wait 10 seconds between users
}- Activity Tracking: Monitor user actions automatically
- Rate Limiting: Protect against platform bans
- Error Handling: Robust error recovery
- Retry Logic: Automatic retries on failure
Found a bug or want to add features?
Fix: Start WebSocket server (node websocket-test-server.js)
Fix: Check message format in README.md
Fix: Click extension icon → Clear Stats, or wait until midnight
Fix: Platform UI changed. Update selectors in handlers/*.js
More help: See INSTALL.md
| Document | Purpose | When to Read |
|---|---|---|
| README.md | Main documentation | First time & reference |
| GETTING-STARTED.md | Quick start guide | You are here! |
| INSTALL.md | Detailed installation | Installation issues |
| QUICK-START.md | 5-minute quickstart | Fast setup |
| IMPLEMENTATION-GUIDE.md | Technical deep dive | Understanding internals |
| CONTRIBUTING.md | Contribution guide | Adding features |
| SECURITY.md | Security policy | Security concerns |
| CHANGELOG.md | Version history | What's new |
// Add delays between actions
await sleep(2000); // 2 seconds
// Use humanize option for typing
options: { humanize: true }
// Scroll before clicking
options: { scrollIntoView: true }ws.on('message', (data) => {
const message = JSON.parse(data);
if (message.type === 'command-result') {
if (message.success) {
console.log('✅ Success');
} else {
console.error('❌ Error:', message.error);
// Retry or handle error
}
}
});// Check rate limits before bulk operations
const rateLimit = await checkRateLimit('connections');
if (rateLimit.remaining < 5) {
console.log('⚠️ Only', rateLimit.remaining, 'connections left today');
// Stop or slow down
}// Monitor tracked activities
ws.on('message', (data) => {
if (data.type === 'activity-tracked') {
console.log('📊 Activity:', data.activity);
// Log to database, analytics, etc.
}
});You now have:
- ✅ Extension installed and working
- ✅ WebSocket server running
- ✅ First commands executed
- ✅ Understanding of capabilities
Start building your automation workflows!
- Questions: GitHub Discussions
- Bugs: GitHub Issues
- Documentation: README.md
Happy Automating! 🚀