Credentials. This setup puts an OpenAI API key and an account password on a remote machine, so limit who can access that machine and rotate the key if it is exposed.
Who it is forA QA lead who has an OpenAI API key on a remote tester machine and wants that machine to handle qa_tester tasks in an AutoSwarm company workflow.
The problemQA tasks in a company DAG need a worker on a separate machine, and the tester wants to use a hosted model without moving the work onto the main server.
The outcomeA remote shadow-worker picks up qa_tester tasks, calls the OpenAI provider with the local key, and submits results back to the adapter queue.
What you need first
- A working AutoSwarm install (the README links to HKUDS/AutoSwarm)
- Python
- A SHADOW_JWT_SECRET of at least 32 characters
- Access to a local model server (Ollama) or an API key for Anthropic or OpenAI, depending on the use case
Steps
- On the remote tester machine, run
export LOCAL_OPENAI_API_KEY="<your-openai-key>"with your own key. (inferred, check the README) - Run
shadow-worker --server-url http://192.168.1.100:8800 --username <username> --password <password> --role qa_tester --provider openai --model gpt-4owith your account details. (inferred, check the README) - Start an AutoSwarm session with
opc chat --mode company "Build feature X"so a qa_tester task is assigned. - Watch the worker output to confirm it claimed the task and submitted a deliverable.
- Review the submission in the React portal before the phase moves on.
Prompt for your agent
Use the repo AhmadHassan-BTed/AutoSwarm-Shadow-Adapter to start a shadow-worker for the qa_tester role on <remote machine> with the openai provider and model gpt-4o. Expected output: the worker's log showing each claimed task and each submitted deliverable. Verify that the key is read from the LOCAL_OPENAI_API_KEY variable and not printed to the log.
Caveat. The README gives the tester example for OpenAI gpt-4o only, so other models from that provider are not shown as tested.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for AhmadHassan-BTed/AutoSwarm-Shadow-Adapter and "Fill a QA seat with a remote OpenAI key"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer