Skip to content

An open-source, faster Devin alternative

TypeScript

Merge pull request #736 from diggerhq/docs/connected-services

Brian Reardon824bbb4ac8d7
diff --cc docs/agents/tools.mdx
index 3f157dcc,70906a5c..6ebcc8be
--- a/docs/agents/tools.mdx
+++ b/docs/agents/tools.mdx
@@@ -230,15 -124,15 +230,19 @@@ runtime already provides that tool
## Call external APIs safely
-Do not embed API keys in a tool or read them from the runtime environment.
-Declare an HTTP connection, store the value as an OpenComputer secret, and
-call the connection's `fetch()` method. See
-[Secrets and outbound requests](/agents/secrets) for a complete example.
+For authenticated HTTP APIs, declare a connection, store the key as an
+OpenComputer secret, and call the connection's `fetch()` method. This keeps
+the credential outside the agent runtime; see
+[Secrets and outbound requests](/agents/secrets).
+
+[Managed GitHub connections](/agents/github) are the exception: they supply
+short-lived environment credentials so Git and `gh` work directly. Never
+embed credentials in tool source or return them to the model.
+ For Gmail, Calendar, Drive, Sheets or GitHub, the credential belongs to whoever
+ connected the account and the platform refreshes it — call those with
+ [`callService`](/agents/services) instead.
+
## Wait for a person before writing
Some writes should not happen because a model decided they should. Such a tool