Ga naar de inhoud
Menu

Aan de slag

Quickstart

.md

This page takes you from nothing to a connected client and a first answer, in about five minutes.

MS Duplex gives your AI agents a governed memory. What an agent learns is kept for your workspace, handed back at the start of a later turn, and held to the rules you set. Your model and your AI client stay yours: the service never calls a model for you.

The Free plan is enough for this page. It asks for no card, and its first 300 queries of every month cost nothing.

1. Create an account

Open Create an account, enter your e-mail address and a password, and type the code that is sent to the address. The console opens and asks you once to accept the Terms of Service and the Privacy Policy.

You start with a workspace of your own, on the Free plan. To work with other people, make an organization with the switcher at the top of the console and invite them on People. An organization has its own workspaces, keys and plan; more than one person needs the Team plan.

2. Set up the workspace and take its key

Open Get started in the console and press Set up in step 1. It makes your first workspace, default, and its first key. The key is shown once: copy it now. Anyone who holds it can act in your workspace, so keep it out of files you share.

Put the key in your shell, so that the commands below can read it:

bash
export DUPLEX_API_KEY="<your Duplex key>"

Check that the service knows it:

bash
curl -sS https://api.duplex.matterspace.ai/v1/whoami -H "X-API-Key: $DUPLEX_API_KEY"

The answer names your workspace's organization, the key and what it may do:

json
{"tenant_id": "org_…", "role": "tenant", "key_id": "k_…", "auth_mode": "keyed", "member_of": ["default"], "scope": "default", "permissions": []}

3. Connect your client

For Claude Code, one line in a terminal:

bash
claude mcp add --transport http duplex https://api.duplex.matterspace.ai/mcp --header "X-API-Key: $DUPLEX_API_KEY"

Then ask Claude Code to list its servers:

bash
claude mcp list

duplex is in the list, connected. The line for every other client — Codex, Cursor, GitHub Copilot in VS Code, Hermes Agent, and clients that sign in, such as ChatGPT and claude.ai — is on Connect a client, and Get started shows each with your own key already in it.

4. Teach it something, and ask

In your client, say:

  • "Remember this: the rehearsal build ships on Fridays."

Start a new session and ask:

  • "When does the rehearsal build ship?"

The answer comes from your workspace's memory. In the console, Try it asks a workspace what it remembers, Answers lists what your clients' turns taught it, and Activity lists each call your agent made, with the key it used and what it was handed.

You can ask the workspace the same question from a terminal:

bash
curl -sS https://api.duplex.matterspace.ai/v1/verb/agent_memory_search \
  -H "X-API-Key: $DUPLEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"scope": "default", "args": {"query": "When does the rehearsal build ship?", "top_k": 5}}'

What happens in a turn

Over MCP your agent makes two calls a turn. At the start it calls duplex_context with the message: the answer carries your workspace's rules that apply, what the workspace keeps that bears on the message, and the task the message belongs to. At the end it calls duplex_observe with how the turn went: that is what the workspace learns from. The server tells the client to make both; nothing else is needed.

A turn in which your agent asks Duplex is one query, however many calls it makes. Your plan includes a number of queries a month; see Plans and limits.

Where a rule must hold whatever the model decides, install your client's hooks as well: a hook runs outside the model and checks a tool call before it runs. See The client packages.

Approved answers

On every plan, the service can answer a question from memory by itself, without your model. It does so only once you approved that answer:

  1. Open Answers in the console. It lists what your clients' turns taught the workspace; an answer nobody approved reads Held.
  2. Press Approve on the answer. From then on that question, asked in the same words, is answered from memory.
  3. Withdraw takes the approval back, and Forget removes the answer.

An approval is of one question and one answer, and it is a person's to give, signed in to the console: you, or in an organization an operator, an admin or an owner. No key and no client can approve.

After the workspace learns something new, an approved question can go to your model once more before the service answers it by itself again.

Next