Get your first agent running on Superserve in minutes. This guide walks you through installation, authentication, creating a simple agent, and deploying it to production.
This opens your browser and displays a verification code:
To authenticate, visit: https://console.superserve.ai/deviceEnter code: ABCD-1234Browser opened automatically.Waiting for authentication...✓ Authenticated successfully!
You can also authenticate with an API key using superserve login --api-key YOUR_KEY. Generate API keys in the console.
Create a file called agent.py with a simple chatbot:
"""Minimal chatbot built with Claude Agent SDK deployed on Superserve."""import asynciofrom claude_agent_sdk import ClaudeAgentOptions, ClaudeSDKClient, TextBlockoptions = ClaudeAgentOptions( model="sonnet", system_prompt="You are a helpful assistant.", permission_mode="bypassPermissions", continue_conversation=True,)async def main(): async with ClaudeSDKClient(options=options) as client: while True: try: user_input = input() except EOFError: break await client.query(prompt=user_input) async for msg in client.receive_response(): for block in getattr(msg, "content", []): if isinstance(block, TextBlock): print(block.text)asyncio.run(main())
3
Add dependencies
For Python agents, create a requirements.txt:
claude-agent-sdk
For TypeScript/JavaScript agents, create a package.json:
For TypeScript agents, use superserve deploy agent.ts --name my-agent
You’ll see real-time progress as your agent is packaged, uploaded, and dependencies are installed:
Packaging project... ✓ (2.4 KB) Uploading to Superserve... ✓ Installing dependencies... ✓ (12.3s) Deployed 'my-agent' in 14.8s Set your API keys as secrets: ┌─────────────────────────────────────────────────────┐ │ superserve secrets set my-agent KEY=VALUE │ └─────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────┐ │ superserve run my-agent "your prompt here" │ └─────────────────────────────────────────────────────┘ Or try it in the Playground: https://playground.superserve.ai/agents/agt_abc123/
If you redeploy an existing agent, you’ll be prompted to confirm. Use --yes to skip confirmation.
Your agent needs API keys to call AI providers. Set them as encrypted secrets:
superserve secrets set my-agent ANTHROPIC_API_KEY=sk-ant-...
You’ll see confirmation:
✓ Set 1 secret(s) for agent 'my-agent'Current secrets: ANTHROPIC_API_KEYTry your agent in Playground: https://playground.superserve.ai/agents/agt_abc123/
Secrets are encrypted at rest and injected via a credential proxy. They never appear in logs or LLM context. Learn more in Secret Management.
The CLI starts a live session where you can chat with your agent:
You > What is the capital of France?Agent > The capital of France is Paris.Completed in 1.2sYou > And what's its population?Agent > Paris has approximately 2.1 million people in the city proper.Completed in 0.8sYou >