{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "tencentcloud-octop-harness--run-production-agent-with-model-routing",
 "repo": "TencentCloud/octop-harness",
 "repo_url": "https://github.com/TencentCloud/octop-harness",
 "repo_slug": "tencentcloud-octop-harness",
 "title": "Run a production agent with swappable model providers",
 "page_title": "How to run a production agent with swappable model providers with Octop Harness",
 "summary": "Build one deepagents-based agent that can switch between OpenAI, Anthropic, Bedrock, and preset providers.",
 "who": "A Python developer who needs an agent in production and wants to change model providers without rewriting the agent.",
 "problem": "Wiring a model, tools, and checkpoints into a deployable agent takes many decisions, and locking into one provider makes switching costly.",
 "outcome": "A working HarnessAgent that answers prompts through a model chosen by configuration, with failures raised as exceptions for the host to handle.",
 "steps": [
  "Confirm Python 3.12 or newer is installed.",
  "Install the package with `pip install octop-harness`. (inferred, check the README)",
  "Export your provider API key as an environment variable in your shell.",
  "Run `octop-harness init` to create an agent workspace. (inferred, check the README)",
  "Create a HarnessAgent through HarnessAgentManager, send a prompt with call(), and wrap the call in exception handling."
 ],
 "agent_prompt": "In the TencentCloud/octop-harness repo, create a HarnessAgentManager with one agent that uses the model provider <provider>. Send the prompt <prompt> through call() and return the reply. Verify the reply is non-empty and that exceptions from call() are caught.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README does not give the exact pip install command, so the install step above is inferred and should be checked against the project's install docs.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.12 or newer",
  "An API key for at least one model provider (OpenAI, Anthropic, AWS Bedrock, or an OpenAI-compatible endpoint)"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Model provider API keys are read from your environment, so keep them out of source code and shared workspace files."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/tencentcloud-octop-harness/run-production-agent-with-model-routing/",
 "md": "https://dedupedai.com/use-cases/tencentcloud-octop-harness/run-production-agent-with-model-routing/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/tencentcloud-octop-harness--run-production-agent-with-model-routing.json",
 "api_version": "v1"
}
