# Post to LinkedIn from Codex

> Ask Codex for a LinkedIn post and your Brandiz.io studio makes it in your brand, from your website. Then it is scheduled on the LinkedIn account you connected, at the time you pick.

Web page: https://www.brandiz.io/agents/codex/linkedin · Updated 2026-11-09

## Set up Codex

You need a Brandiz.io account with your business set up and your LinkedIn account connected under Channels. The address: https://www.brandiz.io/api/mcp

1. **Add the server**: Run the first command below, or put the lines in ~/.codex/config.toml.
2. **Sign in**: Run codex mcp login brandiz. Brandiz.io opens in your browser: sign in, check the business, tick Let it schedule and post for me if it may post for you, and tap Allow. On a machine with no browser, add --no-browser.
3. **Check it**: In Codex, type /mcp to see the servers that are on.
4. **One setup, every Codex**: The Codex CLI, its IDE extension and the ChatGPT desktop app share this setup, so it works in each of them.

## What to copy

**Add Brandiz.io**

```bash
codex mcp add brandiz --url https://www.brandiz.io/api/mcp
```

**Sign in**

```bash
codex mcp login brandiz
```

**Or in ~/.codex/config.toml**

```toml
[mcp_servers.brandiz]
url = "https://www.brandiz.io/api/mcp"
```

## What Codex can have made for LinkedIn

### Posters in your brand

Ask for a post and the studio designs it from your website, in your fonts and colours. On LinkedIn it goes out in the portrait 4:5 (1080 × 1350) size.

### Reels from your pictures

Ask for a reel and the studio makes it in 9:16 from your own pictures, with music, captions and a voice-over. It uses one reel from your package.

### Your own post

Hand Codex your photos (several make one post) or a video with your caption, and it goes out on LinkedIn when you say. That uses nothing from your package.

## LinkedIn's rules, as the studio follows them

The same rules the app checks before a post can go out.

| Rule | LinkedIn |
| --- | --- |
| Caption | Up to 3,000 characters |
| Before “more” | About the first 210 characters show |
| Hashtags | At most 3, specific to the post |
| Emoji | One at most |
| Feed size | portrait 4:5 (1080 × 1350) |
| Posts carry | pictures, videos, documents (PDF carousels) |
| Carousels | Yes |
| Text-only posts | Yes |

## From your ask to LinkedIn

1. **It reads your business**: Codex reads your brief, voice and facts first, so the post sounds like you and every number is one you confirmed.
2. **It adds the post**: It adds the words for the studio. They pass the same claims check as your own posts.
3. **The studio makes it**: Your studio designs the poster in your brand, or makes the reel, and its status says when it's ready.
4. **It schedules it on LinkedIn**: It picks the queue, a time or now. With your tick it goes out then; without it, it waits for your Approve.

## Asks to try on LinkedIn

Type them to Codex as you would ask a person.

- “Write a LinkedIn post about the project we finished this month, from the facts on our site, and have the studio design it.”
- “Schedule the approved hiring poster on LinkedIn for Monday morning.”
- “Make a short reel that explains what we do and queue it for LinkedIn.”
- “What's planned for LinkedIn next week?”
- “Post ./team-photo.jpg to LinkedIn on Tuesday at 9 am with a caption about our new office.”

## Or from the command line

Codex can run these too, once npx brandiz login has your API key.

**Your own post on LinkedIn, now**

```bash
npx brandiz channels
npx brandiz posts own photo.jpg --caption "..." --channels linkedin --when now
```

## Questions

### Can Codex post to LinkedIn without me?

Only if you tick Let it schedule and post for me on the Allow screen when you sign in. Without it, the post is planned for the time Codex picked and waits for your Approve in Brandiz.io.

### Do I need to connect my LinkedIn account first?

Yes. Connect your LinkedIn account in Brandiz.io under Channels. Codex posts only to the accounts you connected, and it can't connect or disconnect them.

### How long are the LinkedIn captions?

Usually 600 to 1,200 characters: one useful point with its proof. LinkedIn takes up to 3,000 characters.

### Does it use my package?

Reading, writing and scheduling don't. A poster the studio designs uses one post from your package the first time, and a reel uses one reel. Your own photos and videos use nothing.

## Sources

- [OpenAI Codex docs: Model Context Protocol](https://learn.chatgpt.com/docs/extend/mcp?surface=cli), checked 2026-11-09

## Read next

- [Codex](https://www.brandiz.io/agents/codex)
- [LinkedIn](https://www.brandiz.io/platforms/linkedin)
- [TikTok](https://www.brandiz.io/agents/codex/tiktok)
