Plotti and agents
Connect an agent
Let your own agent, such as Claude Code or Cursor, read, edit, play and publish your stories.
If you already write with an agent such as Claude Code, Cursor or Codex, you can connect it to Plotti. It then works on your stories as you do. It reads them, rewrites the second night, plays the inn from the cellar scene, and publishes a new version when you ask. The editor shows each change it makes.
Connect your agent
Open Agent access
On My story drafts, click Agent access at the top.
Pick your client
Under Pick your client, click the one you use: Claude Code, Cursor, Codex, opencode or DeepSeek Harness. For any other client, click Other.
Get a token
A token is a key that lets your agent work as you. Under Get a token, type a name that says where it will be used, such as laptop, and click Create.
The token is Shown only once, in this dialog. If you close the dialog before you send it to your agent, make a new one and revoke the old one.
Send it to your agent
Under Send it to your agent, click Copy. It copies one message with what your agent should do, then the setup for your client, with the token filled in. Paste it into your agent and send it. The agent runs the command or adds the setup to its settings file.
The panel plays the conversation as it should go, so you know what to expect.
Check the connection
Ask your agent List my Plotti stories. Under Check the connection, Waiting for the first call changes to Connected, with the time, as soon as your agent reaches Plotti.
Keep the copied message to yourself. Anyone who has it can work on your stories and spend your Poro until you revoke the token.
What your agent can do
Your agent can:
- List your stories and read them.
- Change part of a story, or rewrite it whole.
- Start a new story, from nothing or as a copy of one of the example stories.
- Check a story for problems, as Problems does in the editor.
- Play-test a story from the opening or from a node, with values set at the start, and look at any moment of the run.
- Show you the story's page as the draft stands, before you publish.
- List the pictures and sounds in your Library, upload pictures from your computer, draw new pictures, and put a portrait on a character.
- Make voices for lines, or put a sound you already have on a line.
- Read and write translations, and apply them to the version players have now.
- Publish a new version, as Public or Link only, with a release note in each language.
A first publish is reviewed by Plotti, as it is in the editor (see Publishing). Unless you tell your agent otherwise, a first publish is Public.
Your agent cannot delete a story, take one down or list it again, change your account, buy Poro, or make or revoke tokens. Do these yourself.
Spending Poro
Three things your agent does cost Poro. Your Creator Fund pays first, if you have one (see Which balance pays).
- Play tests. Each run shows in your transactions as Story Playtest - Agent. One call to play stops once it has spent 30 Poro, unless your agent sets a higher limit, up to 80. Its reply says what the run cost.
- Pictures. Each is charged when it is made, and the reply says what it cost. A quick draft costs less and a finer picture more.
- Voices. Each shows as Story Voice. Your agent can tell you what the missing voices of a story would cost before it makes any, and it makes them one node at a time. A sound you already have costs nothing to put on a line.
Reading, editing, checking, uploading, translating and publishing cost no Poro. When your agent translates, it writes the lines itself. What your agent costs to run is between you and the service it comes from.
When you and your agent edit the same story
You can keep the story open in the editor while your agent works on it. Every few seconds, the editor loads your agent's latest save, as long as you have no unsaved changes. The top bar then shows Changed by your agent and how long ago. Click it to open Versions and see what changed.
Before each round of your agent's changes, the editor saves a version of the story. If you do not like what your agent did, restore that version (see Versions).
If you and your agent change the story at the same time, two things can happen:
- Your agent's save is refused when you saved after it read the story. It reads the story again, with your changes in it, and makes its change again.
- The editor shows A newer version of this draft was saved elsewhere. when your agent saved while you had unsaved changes. Click Load that one to take your agent's version, or Keep mine to keep yours and write over your agent's.
Revoke a token
Your tokens, at the bottom of Agent access, lists each token with its name, the start of the token, and when it was last used. A token that has never reached Plotti says Never used.
To stop a token, click Revoke. The editor asks first. Once it is revoked, an agent using it can no longer reach your stories. To connect again, make a new token.
Revoke a token when you stop using a client, when you lose the computer it was on, or when the copied message ended up somewhere others can read it.
Bring a V1 story over
Your agent works on stories made in the V2 editor. To bring over a story you made in the V1 Editor, open it there and click Upgrade to v2 in its toolbar. The dialog has three steps:
- Connect your agent opens Agent access, as above.
- Download the bundle downloads the story as you last saved it, with its pictures. If you have unsaved changes, it says Saved content only.
- Hand it to your agent gives you one line to send your agent with the bundle. Copy copies it.
Your agent then builds the story again as a new V2 story. The V1 story stays as it was.
If something goes wrong
Next steps
- Versions: see what your agent changed, and go back if you need to.
- Play test: play what your agent wrote yourself.
- What costs Poro: where your Poro goes, for you and your agent.