Turn your script into a team tool: a Claude + Replit stack

The struggle: You have a script only you can run, and the team keeps asking you to run it.

What you end up with: A small private web page where teammates upload a file, run your script and download the result, without seeing any keys.

Claude reviews the script and plans the page. Replit Agent builds a simple form around it, with keys stored as Secrets. Access is limited to named teammates, and you test with fake files first.

Tools: Claude, Replit. Level: Pro. Time: 1 day.

Use it if

  • A script saves you hours and the team asks you to run it
  • The input is a file or a few fields
  • You can name who may use it

Skip it if

  • The script touches personal or financial data
  • It deletes or changes data in other systems

The method

  1. Review the script (Claude: Chat)

    Paste the script with keys removed. Ask Claude what it does, what inputs it needs, what could go wrong with bad input, and where it uses a password or token.

    Prompt to copy:

    You are a careful engineer. Below is a script I run by hand (keys removed). Explain what it does in plain words, list its inputs and outputs, where it reads secrets, what happens with bad input, and what it can change outside itself. Suggest the smallest web form that wraps it. If it can delete or send anything, say so. Script: [paste]

    You get: A plain description and a list of risks.

    Tip: Replace every key or password with a placeholder before you paste.

  2. Build the wrapper (Replit: Replit Agent)

    In Replit start a project and give Agent the script and the plan. Ask for a simple page with one upload, one button and a download of the result. Test with invented files only.

    Prompt to copy:

    Wrap my script in a small web app: one page with a file upload (only [file type], max [size]), a Run button, and a result download. Show clear errors for bad files. Never print or log file contents or secrets. Only signed-in users can open the page. Use invented test files. Script: [paste]

    You get: A working page around your script.

    Tip: Ask Agent to validate file type and size.

  3. Move keys into Secrets (Replit: Secrets)

    Open Tools, then Secrets under Setup, add each key as a Secret and read it from the environment in the code. Search the code for any key left in plain text. Rotate any key you pasted anywhere else.

    You get: Keys stored as Secrets, none in code.

    Tip: Multiplayer collaborators can see secret values, so only invite people you would trust with the keys. Organisation members who are not owners see names only.

  4. Limit who can use it (Replit: Publishing)

    Open Tools, then Publishing under Replit Cloud. Before you publish, choose Workspace only or Invite only in Sharing to limit who can see the app, or add sign-in in the app. Check which options your plan shows, publish, then try it as a teammate and as a stranger.

    You get: A published tool only your team can open.

    Tip: Check that a signed-out person sees nothing.

  5. Write the how-to (Claude: Chat)

    Ask Claude for a half-page note for teammates: what to upload, what the result means and who to ask if it fails. Pin it on the page.

    Prompt to copy:

    Write a half-page how-to for teammates using our internal tool: what file to upload, what the result means, three common errors with fixes, and who to contact. Plain words. Details of the tool: [paste]

    You get: A short guide so you stop being the helpline.

    Tip: Add what the tool cannot do.

Where this goes wrong

  • Do not expose credentials. Keep keys in Secrets, rotate any that were ever pasted in chat or code, and remember collaborators with editor access can read the values.
  • A tool that changes or deletes data needs a person to approve each run.
  • Do not store uploaded files longer than needed, and do not run personal data through it without a data protection check.

Swap a tool

  • Lovable instead of Replit: Also builds small apps with sign-in.

Sources

More like this

Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.