---
schema_version: "1"
id: f7da66b6c6c5e3ee46f666434223a29c0af51bf0fa1b6cd4e2f5cf0bf828d49f
title: Referencing the Canvas SDK
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/canvas-framework/guides/platform-connect/using/canvas-framework-referencing-sdk.md
canonical_url: https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-framework-referencing-sdk.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 492e9db0fa00874fdf253d55ed45c8addf0c8578bd36145f373a2b29d17d6225
products:
  - Canvas Developer Guide
  - Platform Developer Content
---

# Referencing the Canvas SDK

The Canvas SDK is available on [GitHub](https://github.com/forcedotcom/salesforcecanvasframeworksdk), and you have two options for referencing it from your canvas app.

-   Host the SDK on your own Web server and access it there
-   Access the SDK hosted on the Salesforce server

For example, here’s what the include statement looks like if you host the SDK on your own Web server:

```html
<script type="text/javascript" src="/sdk/js/canvas-all.js"></script>
```

Here’s what the include statement looks like if you reference the hosted SDK:

```html
<script type="text/javascript" src="https://<instance>.salesforce.com/canvas/sdk/js/68.0/canvas-all.js"></script>
```

The ability to reference the SDK on the Salesforce server is useful when you want to include one of the SDK files in a Web app or from a Visualforce page.

**See Also**  


-   [Canvas SDK](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-framework-using-sdk.md)
-   [Authentication](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-authentication.md)

