---
title: "Connect GitHub Copilot to Spaces · AI replies on Instagram, WhatsApp, LinkedIn and Facebook"
description: "Add Spaces to GitHub Copilot with one MCP URL and a browser sign-in, so your agent can answer customers on Instagram, WhatsApp, LinkedIn and Facebook."
url: https://www.spacesos.com/agents/github-copilot
---

# Connect GitHub Copilot to Spaces

Copilot’s agent mode in VS Code. Once it is connected, GitHub Copilot can read and answer your customers’ messages on Instagram, WhatsApp, LinkedIn and Facebook, inside the limits that keep your accounts safe.

## The easy way

Paste this into GitHub Copilot. It creates your account, connects itself, asks a few questions about your business, sends you a link for each chat app and runs a test message. You only type the email code, sign in to each chat app and approve access once.

`Set up Spaces for me by following https://www.spacesos.com/agents/github-copilot`

Or [start free](https://app.spacesos.com/signup) and follow the steps below yourself.

## Use GitHub Copilot on every app

[Connect GitHub Copilot to InstagramWhat GitHub Copilot can do there](https://www.spacesos.com/channels/instagram) [Connect GitHub Copilot to LinkedInWhat GitHub Copilot can do there](https://www.spacesos.com/channels/linkedin) [Connect GitHub Copilot to FacebookWhat GitHub Copilot can do there](https://www.spacesos.com/channels/facebook) [Connect GitHub Copilot to WhatsAppWhat GitHub Copilot can do there](https://www.spacesos.com/channels/whatsapp) [Connect GitHub Copilot to TelegramWhat GitHub Copilot can do there](https://www.spacesos.com/channels/telegram) [Connect GitHub Copilot to TikTokWhat GitHub Copilot can do there](https://www.spacesos.com/integrations/tiktok)

**spacesos.com/agents/github-copilot**

```
## For AI agents reading this page

You are reading https://www.spacesos.com/agents/github-copilot. The person wants you to set up Spaces in GitHub Copilot, so you can answer their messages on Instagram, WhatsApp, LinkedIn and Facebook Messenger. Do every step yourself. The person only types the email code, signs in to each chat app and approves your access once. At any point, get_started on the Spaces server says the next step.

1. Account. Skip this step in GitHub Copilot: the sign-in in step 2 creates the account with the person’s email code.
2. Connector. You cannot add it yourself in GitHub Copilot. Send the person these steps:
   - In VS Code, open the Command Palette and run MCP: Add Server, then choose HTTP.
   - Paste https://api.spacesos.com/mcp as the URL and name it spaces. Or add the block below to ~/.copilot/mcp-config.json, or to .mcp.json in one project.
   - Start the server and sign in to Spaces in the browser when VS Code asks, then approve access.
   They sign in with their email and the code Spaces sends, then approve access once.
   Check it worked: call get_started on the Spaces server. If the tools are not there, stop and tell the person what failed.
3. Brief. get_started asks for the business brief. Ask the person its short questions (at most 8) in one message, then save their answers with set_business_brief. Use their words; do not invent facts.
4. Channels. Ask which channels to connect: Instagram, WhatsApp, LinkedIn, Facebook Messenger or TikTok. On Facebook’s screen during the Messenger sign-in, ask them to tick the Facebook Pages they run, so you can answer those Pages’ messages too. Call create_messaging_connect_link once per channel and send one link per channel. TikTok is channel tiktok: profile, videos, posts and drafts, not DMs. Until TikTok approves the app, only tester accounts can sign in, and the link answers NOT_CONFIGURED if the TikTok app credentials are not set. They sign in themselves; WhatsApp is a QR code. For Instagram, ask them to turn on two-step verification in Instagram first: it helps the sign-in go through. The first connect starts the Free plan: 1 account and 20 actions a day. Adding a card starts Pay as you go. A second account needs Pay as you go.
5. Test. Call start_setup_test with the account_id and tell the person what it says (for example: send any message to the account from another phone). Call check_setup_test until it says received, read the brief, answer the message with reply_in_chat, and check again until it says replied.
6. Report. Tell the person what is live, what you will do (answer customers from the brief, hand chats to them when the brief says so) and the limits: new or quiet accounts warm up over four weeks, and on WhatsApp new chats wait up to 24 hours after connecting while replies in existing chats still go out.

Rules: ask before creating an account or connecting anything, never type the person’s passwords or codes for them, and respect every limit Spaces returns (wait for retry_after; never retry a refused send).

Checking for new messages: call wait_for_events. It waits until something new arrives (a message, comment, reaction, invitation or account change) and returns it at once, without touching the platform. Call it again with the next_cursor it gave you. Do not call list_messaging_chats or list_messaging_messages over and over to look for news: repeated checks look like a bot to the platforms and can get the account restricted. If your agent runs on a server, create_event_webhook sends each event to your URL instead.
```

## Connect it

1. In VS Code, open the Command Palette and run MCP: Add Server, then choose HTTP.
2. Paste https://api.spacesos.com/mcp as the URL and name it spaces. Or add the block below to ~/.copilot/mcp-config.json, or to.mcp.json in one project.
3. Start the server and sign in to Spaces in the browser when VS Code asks, then approve access.

```
{
  "mcpServers": {
    "spaces": { "type": "http", "url": "https://api.spacesos.com/mcp" }
  }
}
```

### Using an API key instead

Prefer an API key? Keep it in an environment variable called SPACES_KEY and add a header. Never put the key itself in the file. Create the key in your [dashboard](https://app.spacesos.com/dashboard); it is shown once.

```
{
  "mcpServers": {
    "spaces": {
      "type": "http",
      "url": "https://api.spacesos.com/mcp",
      "headers": { "Authorization": "Bearer ${SPACES_KEY}" }
    }
  }
}
```

## Check it worked

Open Copilot Chat in Agent mode and ask it to list your Spaces accounts.

Steps checked on 30 Nov 2026 against [VS Code MCP servers docs](https://code.visualstudio.com/docs/agent-customization/mcp-servers). If a menu has moved, that page has the current version.

## Does GitHub Copilot keep logging you out?

It happens when GitHub Copilot signs in to your Instagram, LinkedIn or Facebook with your password from its own servers. The platform sees you and a stranger signed in at once, so it signs everyone out, including you. Through Spaces, GitHub Copilot never gets your password, so it never logs you out. [What to do right now](https://www.spacesos.com/blocked).

## GitHub Copilot compared with Claude Code and Cursor

Every agent here gets the same accounts, tools and safety limits through Spaces. What differs is how you add it.

| Agent | What it is | How Spaces is added |
| --- | --- | --- |
| **GitHub Copilot** | Copilot’s agent mode in VS Code. | You paste one settings block |
| [Claude Code](https://www.spacesos.com/agents/claude-code) | Anthropic’s coding agent in the terminal. | Adds Spaces itself with one command |
| [Cursor](https://www.spacesos.com/agents/cursor) | The AI code editor. | Adds Spaces itself with one command |
| [Codex](https://www.spacesos.com/agents/codex) | OpenAI’s coding agent, in the terminal and the IDE. | Adds Spaces itself with one command |

## Other clients

- [**Claude Code**](https://www.spacesos.com/agents/claude-code)
- [**Claude**](https://www.spacesos.com/agents/claude)
- [**Cursor**](https://www.spacesos.com/agents/cursor)
- [**Codex**](https://www.spacesos.com/agents/codex)
- [**ChatGPT**](https://www.spacesos.com/agents/chatgpt)
- [**Grok**](https://www.spacesos.com/agents/grok)
- [**OpenClaw**](https://www.spacesos.com/agents/openclaw)
- [**Hermes**](https://www.spacesos.com/agents/hermes)
- [**Muse**](https://www.spacesos.com/agents/muse)
- [**Grokbot**](https://www.spacesos.com/agents/grokbot)
- [**Claude Duet**](https://www.spacesos.com/agents/claude-duet)
- [**Instinct**](https://www.spacesos.com/agents/instinct)
- [**n8n**](https://www.spacesos.com/agents/n8n)

## Questions people ask

[Is an AI agent worth it for my business?Free calculator](https://www.spacesos.com/tools/ai-agent-roi-calculator) [How many DMs can my agent send a day?Free calculator](https://www.spacesos.com/tools/dm-limit-calculator) [Holidays and closures: what your AI agent should do while you are awayGuide](https://www.spacesos.com/blog/ai-agent-holidays-and-closures) [How to train a new team member to work alongside your AI agentGuide](https://www.spacesos.com/blog/train-new-staff-alongside-ai-agent) [Let your AI agent qualify new enquiries before you call them backGuide](https://www.spacesos.com/blog/qualify-new-enquiries-with-an-ai-agent) [Let your AI agent collect everything you need for a quoteGuide](https://www.spacesos.com/blog/collect-quote-details-with-an-ai-agent) [Let your AI agent send your payment and booking links, and see who opens themGuide](https://www.spacesos.com/blog/send-payment-and-booking-links-with-an-ai-agent) [Spam, scams and junk messages: how your AI agent should sort themGuide](https://www.spacesos.com/blog/sort-spam-and-scam-messages-with-an-ai-agent) [LinkedIn API for AI agents: what the options areGuide](https://www.spacesos.com/blog/linkedin-api-for-ai-agents)

FAQ

## Questions, *answered.*

**Still have a question?** Ask your AI agent: it can read our docs. Or browse every answer.[All answers](https://www.spacesos.com/answers)

### How do I connect GitHub Copilot to Spaces?

In VS Code, open the Command Palette and run MCP: Add Server, then choose HTTP. Paste https://api.spacesos.com/mcp as the URL and name it spaces. Or add the block below to ~/.copilot/mcp-config.json, or to.mcp.json in one project. Start the server and sign in to Spaces in the browser when VS Code asks, then approve access. The full steps are on this page.

### Do I need to write code to use GitHub Copilot with Spaces?

No. You can paste the setup line from the top of this page into your AI agent and it does the setup with you. Anything that is yours to decide, like which accounts to connect, it asks you.

### How do I check that GitHub Copilot is connected?

Open Copilot Chat in Agent mode and ask it to list your Spaces accounts.

### What does it cost to use GitHub Copilot with Spaces?

[Free to start](https://www.spacesos.com/pricing)

### Can GitHub Copilot message people who have not written to me?

No. Spaces is for conversations people start with you, and for people who know you and expect to hear from you. It is not for messages to strangers.

### How do I connect GitHub Copilot to Instagram, WhatsApp and LinkedIn?

Connect each account once in Spaces: sign in to Instagram, LinkedIn and Facebook through a secure link, and scan a QR code for WhatsApp and Telegram. Then add Spaces to GitHub Copilot with the steps on this page, and it can answer on every account you connected.

### Why does GitHub Copilot keep logging me out of Instagram?

When an agent signs in to Instagram with your password from its own servers, Instagram sees you and a stranger signed in at once and signs everyone out, including you. Through Spaces, GitHub Copilot never gets your password, so it never logs you out. Every case, platform by platform: spacesos.com/blocked.

### Is GitHub Copilot or Claude Code better for answering customer messages?

Both work with Spaces the same way: the same accounts, the same tools and the same safety limits. Pick the one you already use every day. The setup differs, and each has its own page: spacesos.com/agents/claude-code.

## How your AI agent answers

1. ### A customer writes
  On WhatsApp, Instagram, LinkedIn, Messenger or Telegram.
2. ### Spaces passes it on
  With limits that keep the account safe.
3. ### Your AI agent replies
  In the same chat, in your words. Hard ones go to you.

## Go live in three steps

1. ### Connect
  Sign in to the accounts you already use: WhatsApp, Instagram, LinkedIn, Facebook or Telegram. About a minute.
2. ### Teach your agent
  Write a short brief: what you sell, prices, hours and what always goes to a person. Plain words are enough.
3. ### Go live
  Your agent answers in the same chats. Check its first replies, then let it answer on its own.

## By hand, and with Spaces

1. Reply time
  By hand: When someone gets to it, often hours
  With Spaces: Within minutes, day or night
2. Out of hours
  By hand: Messages wait until morning
  With Spaces: Answered from your brief, the rest waits for you
3. Repeat questions
  By hand: Typed again every time
  With Spaces: Answered the same way, every time
4. Follow-ups
  By hand: Easy to forget
  With Spaces: Sent on time, stopped as soon as they reply
5. Hard conversations
  By hand: Mixed in with everything else
  With Spaces: Handed to a person with the history attached
6. Account safety
  By hand: Up to whoever is sending
  With Spaces: Daily limits, pacing and warm-up on every account

Live in under 60 seconds

## Connect GitHub Copilot and let it answer your customers.

Spaces connects your own accounts to the AI agent you already use. Free to start, no card needed.

For you[Start free, live in 60 seconds](https://app.spacesos.com/signup) No card needed. Connect WhatsApp, Instagram, LinkedIn or Messenger.

For your AI agent

`Set up Spaces for me by following https://www.spacesos.com/agents`

Paste it into Grok, Muse, Claude or ChatGPT. Your agent does the rest.
