Authentication¶
Manifest Platform authentication depends on where your code runs:
- On the platform (Code Blocks, Hosted Services, Agents, Workflows): Authentication is automatic.
FlowSDKreads platform-injected environment variables (AUTH_TOKEN,PLATFORM_API_URL,ORG_ID,WORKSPACE_ID) — no configuration required. - CLI and local tools: Coming soon. Will use
~/.flow/config.jsonfor stored credentials.
FlowSDK (Platform Runtimes)¶
FlowSDK is for code running inside Code Blocks, Hosted Services, Agents, and Workflows. In production runtime it is auto-configured:
No API keys, no config files, no environment setup. The platform handles everything.
CLI and Local Developer Tools¶
Coming Soon
The flow-sdk CLI, CLIClient, and local authentication tools are not yet publicly available. They will be released in an upcoming release. The documentation below is provided as a preview of upcoming capabilities.
CLI authentication (coming soon)
CLI Login¶
Authenticate once, then reuse stored credentials:
This writes ~/.flow/config.json:
{
"access_token": "eyJhbGciOi...",
"platform_url": "https://api.flow.marut.cloud",
"org_id": "550e8400-e29b-41d4-a716-446655440000",
"workspace_id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
}
CLIClient (scripts/notebooks/automation)¶
from flow_sdk.config import load_config
from flow_sdk.cli_client import CLIClient
config = load_config()
client = CLIClient(config)
me = client.get_current_user()
print(me["email"])
Verify Credentials¶
Or in Python:
Security Notes¶
- Treat API keys and tokens as secrets.
- Do not commit
~/.flow/config.json. - Rotate API keys regularly.
Next Steps¶
Continue to the Quickstart to create and deploy your first component.