r/t3code • • 4d ago

Secret store ?

Hi all,

I understand this might not be what T3 Code is made for, and considering it's open source, I could fork it and build my own app. Yet, I thought I would ask.

I run T3 across three different endpoints, and one of the problems I face while working with different repositories (new or old) is sharing secrets across those endpoints. This could be Cloudflare API tokens, Supabase login tokens and IDs, or Expo.dev and Vercel tokens, so I can interact with those services. I also understand there are MCPs, but this is a different point that I'm trying to raise.

Is there any integration where I can load my secrets in some way on a T3 instance, and, considering it has T3 Connect, share them across the connected instances or anything similar to that?

Thank you very much. Looking forward to some good points. If this is not implemented yet, maybe I should open an issue, or if you have an alternative solution, I'm interested to know how you do it.

4 Upvotes

7 comments sorted by

1

u/spyingwind 4d ago

You are looking for the delegate_task tool call. You have to instruct the agent to do so, or tell it that it should use the other T3 instance for those tasks.

1

u/Stiliajohny 4d ago

What you mean??

1

u/spyingwind 3d ago

The delegate_task tool call allows one agent, on one machine, to have another machine do a task for that agent.

A simplified version:

Machine A, Agent A: Calls delegate_task on Machine B to run ls ~/

Machine B: Runs ls ~/ and returns the results.

The source code talking about it: https://github.com/pingdotgg/t3code/blob/af4208eb0a13422ea57bb58032ba99b6670426d4/apps/server/src/peer/RemoteDelegation.ts#L86-L89

1

u/Stiliajohny 3d ago

And how is that related to have a secrets store that agents can pull secrets ?

1

u/spyingwind 2d ago

The the machine running the task has the secrets in its store. The requesting agent doesn't need to know anything about the secrets.

0

u/Stiliajohny 2d ago

Yes, I'm with you on this, but how can I distribute different secrets across the machines?

I could have them on the machine's secret store and create a skill, or maybe have them on the 1Password MCP. Currently, I couldn't find anything with centralised secret management that I can handle from T3 Connect or from the mobile app.

Even though every time I build something I have the secret in the .env, the agent still asks me about it. I was wondering if there is any better way of doing that?

1

u/spyingwind 2d ago

1Password is probably the best route to go.

T3 Code natively understands op:// secret references. secret references. When an agent calls request_secret, T3 Code lets you pick a 1Password reference directly in the prompt card, or you can use op:// references for your text-generator API keys without exposing plaintext in your chat history.

src: https://flaviocopes.com/t3-code/