# Security and isolation

> See how AI agents use credentials without seeing the secret. Fungi keeps provider tokens in trusted custody and checks access to Team resources.

How can AI agents use credentials without seeing them? For supported
integrations, Fungi keeps the secret with its custodian and gives the Agent an
authorized operation.

Fungi separates Team authority from the places that run code. These boundaries
reduce what an Agent, App, or Computer can reach; they do not make code you run
automatically safe. Review an App's permissions and the access you give a
Computer before using either with sensitive work.

## Teams and guest code

Your Team owns its membership, resources, and grants. A **grant** is permission
for one operation, not a copy of a Team-wide credential. The Hub checks Team
authority before dispatching guest code. Hosted guest execution runs in a
Team-assigned shard with its own process user and network namespace. Shards
share the host kernel: this is not a separate physical machine or a guarantee
against every kernel vulnerability.

Guest code calls Team resources through a broker, which checks the invocation,
grant, Team, and current revocation state. A refused or unavailable operation
fails rather than falling back to execution in the Hub process. Disconnecting a
resource or removing a grant stops new calls; a call already admitted may
finish. If you suspect a grant is too broad, revoke it and review the affected
resource's activity.

## Computers and Apps

A hosted Computer runs in its own machine, chosen by the Fungi deployment:
either a jailed Firecracker **microVM** with its own guest kernel on Fungi's own
servers, or a Cloudflare Container. Its lifecycle, files, and processes belong
to that Computer. A local folder attached through Shiitake is different:
commands on your machine run with your operating-system user's access, not
inside the hosted machine. See
[Attach a local folder](/guides/attach-a-local-folder/) before allowing an Agent
to use one.

An App has a Team-scoped installation and a published Release. An ordinary App's
browser surface uses an App origin and an iframe boundary; browser framing is
not the authority for backend operations. The Hub checks the Team and App grant
before an App backend runs in the execution shard. Do not treat another Team's
App or its data as accessible merely because you know an App identifier.

The trusted dashboard shell is an exception to browser isolation. Tourtois and
other Apps that declare `team.workbenchHost` run inside the Team page with your
signed-in browser's access to the Team and its Apps. Only choose a dashboard you
trust. See [Customize your Team dashboard](/guides/customize-your-dashboard/).

## Network and credentials

Computer internet access is on by default and can be turned off in that
Computer's settings. Public requests go through a policy gateway with method,
destination, and rate-limit checks; the gateway does not add your connected
credentials to anonymous downloads. This is not unrestricted internet access. A
private GitHub repository uses the separate Team-authorized connection path, and
GitHub applies its own repository and branch permissions. See
[Connect GitHub](/guides/connect-github/) for disconnect and push limits.

Provider tokens and personal model keys stay with their credential custodian,
not in Team directory records or guest responses. A connected integration can be
unavailable, out of scope, or revoked. Reconnect it or choose another authorized
resource; do not put a provider key into an Agent prompt or App source to work
around a refusal. [Your own model key](/models/your-own-key/) explains the
difference between a personal key and a Team-paid request.

## What these checks establish

The repository has separate native tests and scratch-host drills for shard
placement, cross-Team broker refusals, App execution, revocation, and some
network denials. A passing control for one path does not prove all guest-code
kinds, DNS-rebinding resistance, every provider, or every deployment. Hosted
Computer isolation also depends on the configured host and its operating-system
permissions. Operators with access to the host and its protected stores have
different authority from Team members; Fungi does not claim to hide Team data
from those operators. Report unexpected cross-Team access rather than relying on
these boundaries as a substitute for backups or access review.

**Next:** [Plan backups and recovery](/guides/back-up-and-restore/).
