Skip to main content
Getting Started

Application integration

Choose an integration approach and calling identity, complete service account setup, and add business capabilities as needed.

Use Qoder Agent SDK to receive tasks, call business tools, and deliver results in your applications, internal tools, or automated services. See Overview and How it works for capabilities and execution.

Integration scenarios

Find your requirement, choose an approach, and follow the linked instructions:
Your requirementIntegration approachWhere to start
Build an Agent application or add Agent capabilities to an existing productEmbed the SDK in a desktop application, web backend, or developer toolChoose a calling identity, Setup steps
Automate tasks in an existing business workflowCall the SDK from a script, job service, or pipelineSetup steps, Add business capabilities
Track user consumption or restrict access by permissions, plan, or balanceAttribute usage and add checks before starting a task as neededUsage attribution and task admission
Combine capabilities as needed; you do not need to integrate all of them.

Choose a calling identity

Individual calls

A Personal Access Token (PAT) represents a Qoder user. Use it for scripts, CI, or applications that need that user's permissions and data. A developer workstation can also reuse the local Qoder CLI sign-in. Automated services should configure credentials explicitly.

Organization applications

A service account (SA) is an independent application identity within an organization, suited to backend services, CI, and scheduled jobs that should not depend on a personal account. Business users continue to sign in to your application and do not each need a Qoder account. Your application handles user authentication and task authorization. See Members and roles and Service accounts.

Manage service account credentials by deployment

  • SDK on a trusted backend: Store the SA Key on the backend and pass it directly to the SDK. The SDK obtains and refreshes short-lived service account tokens (SATs).
  • Client applications or centralized credentials: Keep the SA Key on a trusted server, validate the business user, and exchange the key for an SAT. The host application provides and refreshes SATs. Do not distribute the SA Key in client applications.
SA calls with SATs from a trusted server

Start integrating with a service account

Complete the steps below in order, reusing existing configuration where applicable. The subscription, billing, service account, and credentials must belong to the same target organization.

Step 1: Check the organization and subscription channel

Confirm that the target organization has an active Teams or Enterprise subscription and was created through a Cloud Marketplace redemption code. Check the prerequisites for SA mode. See About redemption codes for organization creation and purchasing, and Plans and pricing for plan details.

Step 2: Purchase and redeem SA dedicated Credits

  1. Follow Purchase and redemption to buy a service account dedicated Credits pack on Alibaba Cloud International Marketplace.
  2. As an organization administrator, open Organization Settings > Organization Usage > Redeem credits pack, redeem it to the target organization, and confirm that the balance is available.
Purchase and redeem dedicated Credits before making calls. Seat Credits and shared add-on Credits cannot be used. Check the target organization and validity period before redemption.

Step 3: Create a service account and credentials

  1. Have an organization administrator create a service account for the application and set a dedicated Credits quota if needed.
  2. Generate an SA Key as described in the service account authentication prerequisites and store it in a trusted server-side secret manager.

Step 4: Install the SDK and configure SA authentication

Choose JavaScript/TypeScript (Node.js), Python, or Java, then follow the installation instructions. Use one of these authentication methods: See the TypeScript, Python, and Java references for APIs, and SDK reference for language differences.

Step 5: Run a task and check usage

  1. Run your first task with Quick start, using the SA authentication configured in step 4 and an explicit workspace and tool permissions.
  2. After receiving the final result, check the task status using Errors and error codes, then review Cost and usage.
  3. Check SA consumption and the dedicated Credits balance in Organization Usage. Follow enterprise billing guidance to check orders and payments in the marketplace account.
Before production, verify permissions, timeouts, cancellation, and session recovery. See Troubleshooting for runtime issues. For SA failures, check the organization channel, dedicated Credits balance, and account quota, as well as authentication.

Add business capabilities

Combine these capabilities as needed. Follow the linked documentation for configuration:
Business requirementApproach and documentation
Access business data or internal systemsCustom tools, MCP
Provide business roles, team rules, and working methodsSystem prompt, Skills
Assign specialist roles or distribute extensions togetherSubagents, Plugins
Approve operations and validate or audit executionPermissions, Hooks
Resume sessions across instancesExternal session storage
Reuse experience or restore file stateMemory, File snapshots and rewind
Configure model policies or check code securityModel selection, Security scan
Track consumption by user or customerMap users, tasks, and sessions, read Cost and usage, and record usage in your business system
Restrict use by permissions, plan, or balanceCheck business entitlements in the application. Start the task if allowed; otherwise return a reason. Qoder still validates credentials and platform limits

Frequently asked questions

Does every business user need a Qoder account?

Not when integrating with an SA. Users keep their application accounts, and the SA accesses Qoder on behalf of the application. Your application remains responsible for sign-in, data access, and task authorization. See Organization applications.

Can I call Qoder with an SA as soon as I buy an organization subscription?

First confirm that the organization meets the prerequisites, purchase and redeem dedicated service account Credits, and confirm that the balance is available. Then create the service account and credentials and configure the SDK. Follow Start integrating with a service account.

Does passing the initial task check guarantee that subsequent model calls succeed?

Not necessarily. The initial business check only decides whether to start the task. Subsequent calls must still meet credential, dedicated Credits balance, and account quota requirements.

Can a saved session continue on another machine?

The project files must remain accessible, with consistent project directory semantics. External session storage does not migrate the workspace.

Does recording user consumption make the platform bill each user separately?

No. The platform continues to record consumption against the service account and its organization. Your application maps usage to business users and allocates or records it itself; this does not automatically change platform usage attribution or ownership of Credits pack orders.